Free Support Forum - aspose.com

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 following code snippet:

Dim reader As BarCodeReader = New
BarCodeReader(New
Bitmap(stream), CType([Enum].Parse(GetType(BarCodeReadType), ComboBox1.Items(i), True), BarCodeReadType))<o:p></o:p>


For details please visit the link:

http://msdn.microsoft.com/en-us/library/kxydatf9.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1

Please let me know for futher assistance and comments.


That works.

Thanks,

Daniel