This topic describes how to insert a barcode control of the UPC-A
symbology (code type) into a report. In addition, it gives a short description
of the UPC-A code type. To learn more about barcodes in XtraReports, see
the Barcodes Overview topic.
Short Description
The "UPC-A barcode" is by far the most common and well-known symbology,
especially in the United States. A UPC-A barcode is the barcode you will find on
virtually every consumer item on the shelves of your local supermarket, as well
as books, magazines, and newspapers. It is called simply, a "UPC barcode" or
"UPC Symbol."
The UPC-A barcode contains 12 digits, no letters or other characters. The
first digit is the prefix signifying the product type. The last digit is the
"check digit". The check digit is calculated using first eleven figures when the
barcode is constructed. So, for the correct UPC-A you should specify only the
first 11 digits.
The recommended dimensions are shown in the picture. The standard allows
magnification up to 200 %, and reduction of up to 80 % of the recommended
size.
There should be two quiet zones before and after the barcode. They provide
reliable operation of the barcode scanner. The quiet zone recommended length is
2.97 mm for the barcode of standard width and height.
Barcode's Properties
The are no properties specific to the UPC-A barcode type.
Note
The control does not verify the length of the assigned character string
specified by the XRControl.Text
value. It is the developer's responsibility to check that the passed string
contains no more than 11 digits (the control calculates the last twelfth digit
automatically). If the number of digits is less than 11, the leading zeroes are
added to the resulting barcode.