TdxBarCodeUPCASymbology Class
The UPC-A barcode symbology class.
Declaration
TdxBarCodeUPCASymbology = class(
TdxCustomBarCodeSymbology
)
Remarks
The UPC-A barcodes contain 12 digits, with no letters or other characters. The last digit contains the checksum calculated during the barcode generation. As in the case of the EAN13 barcodes, the digit relative size is determined by the standard (i.e., the Style.Font.Size property value has no effect on the displayed encoded text).
Barcode controls do not verify the length of the source text string. You need to check that the source text contains no more than 11 digits. The 12th digit (i.e., checksum) is calculated automatically. If the number of digits is less than 11, leading zeroes are added to the resulting barcode.
This class does not introduce any new public members.
To enable the UPC-A generation mode, assign the TdxBarCodeUPCASymbology class name to the Properties.BarCodeSymbologyClassName property provided by the unbound and data-aware barcode controls.
The dxBarCodeUPCALeftQuietZoneSize and dxBarCodeUPCARightQuietZoneSize global constant values determine the UPC-A barcode’s left and right quiet zone sizes, respectively.