FAQ Barcode Creation
How Can I Calculate the GTIN Check Digit with GS1 DataMatrix?
How Can I Calculate the GTIN Check Digit with GS1 DataMatrix?
Assuming you have several Application Identifiers to encode (01-GTIN + 17-Expiration Date + 10-Batch Lot...) and you want to calculate the check digit of the GTIN number with TBarCode, proceed as follows:
Set Property Format = 01#############^ Set Property Translate Esc Sequences = True Set Property CheckDigit = EAN-14 (complies with Mod-10 used with GTIN) Set Property DMFormat = EAN Set Property Text = GTIN (13 digits, no check digit) + 17 + Exp. Date + 10 + Batch Lot Number
Note: Encode the leading GTIN number without 01 and with only the first 13 digits (no check digit).The "^" character in the format property controls the position, where the calculated check digit will be automatically inserted. The leading 01 AI for the GTIN is also contained in the format string.
The resulting barcode data will be as follows:
10 + GTIN (13 digits + 1 check digit) + 17 + Exp. Date + 10 + Batch Lot Number