This member of Class WaveLinkBarcode is supported on iOS, Windows Mobile, Windows CE, Palm, and DOS..
The AddBarcode Method adds a barcode configuration to the WaveLinkBarcode object.
Syntax
public void AddBarcode(int bcType)
throws IllegalArgumentException
public void AddBarcode(int bcType, int bcMinLen, int BcMaxLen)
throws IllegalArgumentException
public void AddBarcode(int bcType, boolean bcExpand, booleanbcDecode, int bcMinLen, int bcMaxLen)
throws IllegalArgumentException
Parameters
bcType |
The symbology type to be added |
bcExpand |
A true value expands read symbology; a false value does not expand it |
bcDecode |
A true value decodes scanned barcode; a false value does not decode it |
bcMinLen |
The minimum accepted barcode length |
bcMaxlen |
The maximum accepted barcode length |
Throws
IllegalArgumentException
Remarks
Input length restrictions for barcode configurations can be eliminated by setting both the bcMinLen and bcMaxLen parameters to zero (0).
The possible values for the bcType parameter are:
B_UPC
CODABAR
CODE_11
CODE_39
CODE_93
CODE_128
CODE_D25
CODE_I25
D25_IATA
EAN_8
EAN_13
MSI
PDF_417
TO_39
UCC_128
UPC_A
UPC_E0
UPC_E1
WLNOSYMBOLOGY
The bcExpand parameter is only valid with the UPC_E0 barcode type which may or may not be further expanded following decode. For all other barcode types pass this parameter as false.
The individual barcode configurations are stored within a WaveLinkBarcode object using a zero-based index. (For example, the fourth barcode configuration has an index value of 3.)
Once defined, a specific barcode configuration remains within a WaveLinkBarcode object until either the object is released, the barcode configuration is removed from the object using the RemoveBarcode Method, or all barcode configurations are cleared from the object using the ClearBarcodes Method. This allows you to modify a single barcode configuration instead of creating a new barcode object for each individual instance.
To add an additional barcode configuration to a saved barcode file, make the barcode file the current WaveLinkBarcode object using the GetBarcodeFile Method, then use AddBarcode Method.
Example
See the StoreBarcode Method.
Was this article useful?
The topic was:
Inaccurate
Incomplete
Not what I expected
Other