BarcodeFormat Class

Description

Defines barcode format objects.

Public Members

Properties

Barcode Format Value Table

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