BarcodeFormat Class
Description
Defines barcode format objects.
Public Members
Properties
-
Name Description BarcodeFormat::Type Returns barcode type as number. BarcodeFormat::TypeString Returns barcode type as string.
Barcode Format Value Table
-
Name Value BarcodeFormat::CODE_39 0x1L BarcodeFormat::CODE_128 0x2L BarcodeFormat::CODE_93 0x4L BarcodeFormat::CODABAR 0x8L BarcodeFormat::ITF 0x10L BarcodeFormat::EAN_13 0x20L BarcodeFormat::EAN_8 0x40L BarcodeFormat::UPC_A 0x80L BarcodeFormat::UPC_E 0x100L BarcodeFormat::INDUSTRIAL_25 0x200L BarcodeFormat::OneD 0x3FFL BarcodeFormat::PDF417 0x2000000L BarcodeFormat::QR_CODE 0x4000000L BarcodeFormat::DATAMATRIX 0x8000000L
Example
Dim oFormat As New BarcodeFormat
Dim oOptions As New ReaderOptions
Dim oReader As New BarcodeReader
Dim vFormat As Variant
vFormat = oFormat.OneD Or _
oFormat.QR_CODE Or _
oFormat.PDF417 Or _
oFormat.DATAMATRIX
oOptions.BarcodeFormats = vFormat
oOptions.MaxBarcodesNumPerPage = 1
oReader.ReaderOptions = oOptions
oReader.DecodeFile "c:\test.bmp"
Dim oBarcodeArray As BarcodeResultArray
Set oBarcodeArray = oReader.Barcodes
Dim oBarcode As BarcodeResult
Set oBarcode = oBarcodeArray.Item(0)
MsgBox oBarcode.BarcodeFormat.TypeString
See Also
ActiveX/COM > Objects > BarcodeReader > DecodeFile
ActiveX/COM > Objects > BarcodeReader > ErrorCode
ActiveX/COM > Objects > ReaderOptions > BarcodeFormats
ActiveX/COM > Objects > ReaderOptions > MaxBarcodesNumPerPage
ActiveX/COM > Objects > BarcodeResult
ActiveX/COM > Objects > BarcodeResultArray