Visual Basic |
---|
Public Property BarcodeType As Long |
The default value is 0 (Unknown Barcode type).
By default, the barcode engine will search for all 1D barcodes. The 1D barcode set includes all types, except PatchCode, PostNet, PDF417, DataMatrix, IntelligentMail, Royal Post Mail 4-State, QRcode, Aztec, and Australian Post 4-State.
Note: If an unknown barcode type and a specified barcode type are flagged, then only the specified barcode type is searched for. For example, if you flagged both UnknownBarcode and Aztec, only Aztec is detected.
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, set the BarcodeType property to 16384 + 1024 = 17408 (&H4400).
Valid values for BarcodeType property:
-
0 (&H0) - The expected barcode type is unknown. All 1D barcode types will be tested.
-
1 (&H1) - The expected barcode type is INDUSTRY 2 OF 5.
-
2 (&H2) - The expected barcode type is INTERLEAVED 2 OF 5.
-
4 (&H4) - The expected barcode type is IATA 2 OF 5.
-
8 (&H8) - The expected barcode type is DATALOGIC 2 OF 5.
-
16 (&H10) - The expected barcode type is INVERT 2 OF 5.
-
32 (&H20) - The expected barcode type is BCD MATRIX.
-
64 (&H40) - The expected barcode type is MATRIX 2 OF 5.
-
128 (&H80) - The expected barcode type is CODE 32.
-
256 (&H100) - The expected barcode type is CODE 39.
-
512 (&H200) - The expected barcode type is CODABAR 2.
-
1024 (&H400) - The expected barcode type is CODE 93.
-
2048 (&H800) - The expected barcode type is CODE 128.
-
4096 (&H1000) - The expected barcode type is EAN-13.
-
8192 (&H2000) - The expected barcode type is EAN-8.
-
16384 (&H4000) - The expected barcode type is UPC-A.
-
32768 (&H8000) - The expected barcode type is UPC-E.
-
65536 (&H10000) - The expected barcode type is ADD 5.
-
131072 (&H20000) - The expected barcode type is ADD 2.
-
262144 (&H40000) - The expected barcode type is UCC128/EAN-128.
-
524288 (&H80000) - The expected barcode type is Patch Code.
-
1048576 (&H100000) - The expected barcode type is PostNet.
-
2097152 (&H200000) - The expected barcode type is PDF417. Note: Requires Professional Edition registration.
-
4194304 (&H400000) - The expected barcode type is DataMatrix. Note: Requires Professional Edition registration.
-
8388608 (&H800000) - The expected barcode type is Code 39 Extended.
-
16777216 (&H1000000) - The expected barcode type is Code 93 Extended.
-
33554432 (&H2000000) - The expected barcode type is QRcode. Note: Requires Professional Edition registration.
-
67108864 (&H4000000) - The expected barcode type is Intelligent Mail.
-
134217728 (&H8000000) - The expected barcode type is British Royal Post 4 State.
-
268435456 (&H10000000) - The expected barcode type is Australian Post 4 State.
-
536870912 (&H20000000) - The expected barcode type is Aztec.
-
1073741824 (&H40000000) - The expected barcode type is GS1 DataBar.