How to use the barcode components
Usage:
  1. Put a barcode component, such as the TBarcode2D_QRCode, TBarcode2D_PDF417, and TBarcode2D_RSS14 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 TBarcode2D 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, 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 and OnInvalidDataLength (only for Delphi/C++ Builder 2009 or later) event handles to catch the invalid barcode length exception. And create the OnInvalidChar and OnInvalidDataChar (only for Delphi/C++ Builder 2009 or later) event handles 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