Visual Basic |
---|
Public Sub SetBarcodeReaderType( _ ByVal BarcodeType As BC_BarcodeStyle _ ) |
Value | Description |
---|---|
BC_StyleAdd2 | Indicates an Add 2 barcode type. |
BC_StyleAdd5 | Indicates an Add 5 barcode type. |
BC_StyleAustralian4State | Indicates an Australian Post 4 State barcode. |
BC_StyleAztec | Indicates an Aztec barcode type. |
BC_StyleBCDMatrix | Indicates a BCD Matrix barcode type. |
BC_StyleCodabar | Indicates a Codabar barcode type. |
BC_StyleCode128 | Indicates a Code 128 barcode type. |
BC_StyleCode32 | Indicates a Code 32 barcode type. |
BC_StyleCode39 | Indicates a Code 39 barcode type. |
BC_StyleCode39Extended | Indicates a Code 39 Extended barcode type. |
BC_StyleCode93 | Indicates a Code 93 barcode type. |
BC_StyleCode93Extended | Indicates a Code 93 Extended barcode type. |
BC_StyleDataLogic2of5 | Indicates a DataLogic 2 of 5 barcode type. |
BC_StyleDataMatrix | Indicates a DataMatrix barcode type. |
BC_StyleEAN128 | Indicates an EAN-128 barcode type. |
BC_StyleEAN13 | Indicates an EAN-13 barcode. This also supports a JAN barcode which is an EAN-13 with country code 49. |
BC_StyleEAN8 | Indicates an EAN-8 barcode type. |
BC_StyleGS1DataBar | Indicates a GS1 DataBar barcode type. |
BC_StyleIATA2of5 | Indicates an IATA 2 of 5 barcode type. |
BC_StyleIndustry2of5 | Indicates an Industry 2 of 5 barcode type. |
BC_StyleIntelligentMail | Indicates an United States Postal IntelligentMail 4 State barcode. |
BC_StyleInterleaved2of5 | Indicates an Interleaved 2 of 5 barcode type. |
BC_StyleInvert2of5 | Indicates an Inverted 2 of 5 barcode type. |
BC_StyleMatrix2of5 | Indicates a Matrix 2 of 5 barcode type. |
BC_StyleMicroPDF417 | Indicates a MicroPDF417 barcode type. |
BC_StylePatchCode | Indicates a Patch Code. |
BC_StylePDF417 | Indicates a PDF417 barcode type. |
BC_StylePlanet | Indicates a PLANET barcode type. |
BC_StylePostNet | Indicates a PostNet barcode type. |
BC_StyleQRCode | Indicates a QR Code barcode. |
BC_StyleRoyalPost4State | Indicates a Royal Post 4 State barcode. |
BC_StyleUnknown | Indicates an unknown barcode. |
BC_StyleUPCA | Indicates a UPC-A barcode type. |
BC_StyleUPCE | Indicates a UPC-E barcode type. |
BC_StyleUPU4State | Indicates a UPU S18 4-State barcode type |
By default, the barcode engine will search for all 1D barcodes. The 1D barcode set includes all types, except PatchCode, PostNet, PDF417, Data Matrix, IntelligentMail, Royal Post Mail 4-State, QRcode, Aztec, and Australian Post 4-State.
The barcode recognition engine is capable of detecting 1D barcodes in an image without any prior knowledge of the barcode type. However, you can speed up the recognition process by specifying a barcode type. Barcode types can be combined. For example, if you want to specify UPC-A and CODE 93, you should call SetBarcodeReaderType method 2 times with BarcodeType parameter BC_StyleUPCA and BC_StyleCode93.
Passing BC_StyleUnknown value to the method clears list of barcode types to search for during recognition and barcode engine will use default value - all 1D barcodes. Passing other BC_BarcodeStyle enumeration value will add this barcode type to the list of searched barcodes and barcode engine will search only for these barcode types.
VB6 |
Copy Code
|
---|---|
SetBarcodeReaderType BC_StyleUnknown ' clear previously added barcode types SetBarcodeReaderType BC_StyleUPCA ' add UPC-A barcode type to search for in recognition SetBarcodeReaderType BC_StyleCode93 ' add CODE 93 barcode type to search for in recognition |