Accusoft BarcodeXpress v13.3 - Updated
SetBarcodeReaderType Method
AccusoftBarcodeXpress13 ActiveX DLL > BarcodeXpress Object : SetBarcodeReaderType Method
A BC_BarcodeStyle enumeration value which represents the type of barcode to search.
Description
Sets barcode type to search for during recognition.
Syntax
Visual Basic
Public Sub SetBarcodeReaderType( _
   ByVal BarcodeType As BC_BarcodeStyle _
) 
Parameters
BarcodeType
ValueDescription
BC_StyleAdd2Indicates an Add 2 barcode type.
BC_StyleAdd5Indicates an Add 5 barcode type.
BC_StyleAustralian4StateIndicates an Australian Post 4 State barcode.
BC_StyleAztecIndicates an Aztec barcode type.
BC_StyleBCDMatrixIndicates a BCD Matrix barcode type.
BC_StyleCodabarIndicates a Codabar barcode type.
BC_StyleCode128Indicates a Code 128 barcode type.
BC_StyleCode32Indicates a Code 32 barcode type.
BC_StyleCode39Indicates a Code 39 barcode type.
BC_StyleCode39ExtendedIndicates a Code 39 Extended barcode type.
BC_StyleCode93Indicates a Code 93 barcode type.
BC_StyleCode93ExtendedIndicates a Code 93 Extended barcode type.
BC_StyleDataLogic2of5Indicates a DataLogic 2 of 5 barcode type.
BC_StyleDataMatrixIndicates a DataMatrix barcode type.
BC_StyleEAN128Indicates an EAN-128 barcode type.
BC_StyleEAN13Indicates an EAN-13 barcode. This also supports a JAN barcode which is an EAN-13 with country code 49.
BC_StyleEAN8Indicates an EAN-8 barcode type.
BC_StyleGS1DataBarIndicates a GS1 DataBar barcode type.
BC_StyleIATA2of5Indicates an IATA 2 of 5 barcode type.
BC_StyleIndustry2of5Indicates an Industry 2 of 5 barcode type.
BC_StyleIntelligentMailIndicates an United States Postal IntelligentMail 4 State barcode.
BC_StyleInterleaved2of5Indicates an Interleaved 2 of 5 barcode type.
BC_StyleInvert2of5Indicates an Inverted 2 of 5 barcode type.
BC_StyleMatrix2of5Indicates a Matrix 2 of 5 barcode type.
BC_StyleMicroPDF417Indicates a MicroPDF417 barcode type.
BC_StylePatchCodeIndicates a Patch Code.
BC_StylePDF417Indicates a PDF417 barcode type.
BC_StylePlanetIndicates a PLANET barcode type.
BC_StylePostNetIndicates a PostNet barcode type.
BC_StyleQRCodeIndicates a QR Code barcode.
BC_StyleRoyalPost4StateIndicates a Royal Post 4 State barcode.
BC_StyleUnknownIndicates an unknown barcode.
BC_StyleUPCAIndicates a UPC-A barcode type.
BC_StyleUPCEIndicates a UPC-E barcode type.
BC_StyleUPU4StateIndicates a UPU S18 4-State barcode type
A BC_BarcodeStyle enumeration value which represents the type of barcode to search.
Remarks

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.

 

Example
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

 

See Also

BarcodeXpress Object  | BarcodeXpress Members  | GetBarcodeReaderType Method  | GetBarcodeReaderTypesCount Method  | BC_BarcodeStyle Enumeration