How to use the barcode components

Usage:

  1. Put a barcode component, such as the TBarcode_Code39, TBarcode_EAN13, and TBarcode_Code128 to your form.
  2. Put a TImage control to your form.
  3. Set the Image property of the barcode component to the TImage control.

    You can link single TImage control to multiple TBarcode components in order to display multiple barcode symbols in the TImage control (using the LeftMargin and TopMargin properties to specify the position for every barcode symbol).

Note:

If the barcode symbol isn't displayed, or it is wrong, please check whether the length of barcode text exceeds the maximum length limit, or whether there is any invalid character in the barcode text.

You can create the OnInvalidLength event handle to catch the invalid barcode length exception. And create the OnInvalidChar event handle to catch the invalid character in the barcode text.

Also, please check whether the TImage control is large enough to accommodate entire barcode symbol.

Contents