A new ITF-14 barcode has been added in FastReport VCL 2021.2. Let me remind you that ITF-14 (Interleaved Two of Five) is a two-band numeric code, or a high-density code that can encode an even number of digits only. Each such barcode encodes an odd digit with a bar and an even digit with a space between the odd ones. To encode an odd number of digits, you need to pad the leftmost (most significant) digit with a zero. You can read more theoretical information about ITF-14 in another article.
Not long ago, our users found some non-critical errors. Nevertheless, sometimes they interfered with the use of the barcode. The fixes are already in the public domain. This article is intended to help those users who have not noticed the errors yet, and it will also introduce the implementation features.
It was noticed that under some conditions, incorrect digits could be displayed under the barcode. Also, the strokes went beyond the borders of the frame at the bottom.
These errors have already been fixed and if you use ITF-14 barcode in your projects, then we highly recommend you updating FastReport to the latest version.
Now let’s move on to the features.
The frame is mandatory for this barcode, since it is spelled out in the specification. So, there will be no way to completely disable the frame or make a lot of change. But you can still change it.
First, you can turn off sidelines by turning on the TestLine property.
Secondly, you can change the thickness of the inline by changing Frame->Width. This property will work even if the outer border is disabled.
Optionally, you can enable and configure an outer frame using the Frame property. The principle is exactly the same as for any other object in the report; the barcode will have 2 frames at once, and the outer one will be richer in design possibilities.
Generating the ITF-14 barcode using Delphi / Lazarus code
ITF-14 is undoubtedly one of the most commonly used barcodes. If you notice any errors or have any questions, please write in our Support.