Where is BarCodeReadType.FromString gone?

Hi,

Since the update of Aspose BarCodeRecognition to 5.3.0.0 the

BarCodeReadType.FromString is not available.

I used:

Dim reader As BarCodeReader = New BarCodeReader(New Bitmap(stream), BarCodeReadType.FromString(ComboBoxBarcodeSymbology.Items(i)))

to get the Barcodetype from String. What is the new, changed and uncommented way to to?

Thanks,

Damiel

Anybody there?

Hi Daniel,

Thank you for your inquiry and sorry for the delayed response. You are right that BarCodeReadType.FromString is not available. You can use the following code snippet:

Dim reader As BarCodeReader = New BarCodeReader(New Bitmap(stream), CType([Enum].Parse(GetType(BarCodeReadType), ComboBox1.Items(i), True), BarCodeReadType))

For details please visit the link: System.Enum.Parse

Please let me know for further assistance and comments.

That works.

Thanks,

Daniel