TBarcode1D_EAN8

EAN-8The component is used to create the EAN-8 barcode symbol. It's defined in the pEAN8 unit.

The EAN-8 barcode symbology is also known as European Article Number 8, EAN8, UPC-8, GTIN-8, GS1-8, EAN/UCC-8, etc. It is a shortened version of the EAN-13 code that is intended to be used on packaging which would be otherwise too small to use one of the other versions. EAN-8 barcodes may be used to encode GTIN-8s which are another set of product identifiers from the GS1 System. The value to encode by EAN-8 has the following structure:

  1. 2 or 3 digits for GS1 prefix.
  2. 5 or 4 digits for Item reference element depending on the length of the GS1 prefix.
  3. 1 digit for checksum.

An EAN-2 or an EAN-5 barcode may be added for a total of 10 or 13 data digits.

The EAN-8 barcode symbol can be used together with a 3-column CC-A or a 3-column CC-B 2D symbol to create the EAN.UCC composite symbol. If you use the 2D Barcode VCL Components package, the component can be used as the value of the Liner property of the CC-A or CC-B 2D barcode component to create the EAN.UCC composite symbols. In such case, only the Barcode, Data (only for Delphi/C++ Builder 2009 or later), AutoCheckDigit, Height, DisplayText, TextPosition, TextAlignment, TextFont, TextVSpacing, TextHSpacing, ExtraFontSize, LeftQuietZoneSpacing, and the RightQuietZoneSpacing properties are useful, the value of other properties will be ignored and they will be set automatically depending on the settings of the 2D barcode component. In addition, the Height property should be set to a value larger than zero, and the Image should not be normally set.

Technical Details:
Properties:
Methods:
Events:

(*): The Data property, OnInvalidDataLength and OnInvalidDataChar events are available only for the Delphi/C++ Builder 2009 or later.

Contents