Jump to content

UPC-A barcode


bezaman

Recommended Posts

i have used the UPCA Barcode Rule to to create my barcode but there is an error when composing.

 

Error in function MakeUPCABarcode: The input string must contain exactly 11 characters.

 

But my input string is 12 characters. It is a GTIN-12 digit number. Is there a way to encode this using the UPC-A Barcode Rule?

Link to comment
Share on other sites

The 12th digit in a UPC-A barcode is the checksum digit, which is calculated by the barcode generation algoritm, so you can only encode 11 digits of data. This is according to the barcode spec:

http://www.idautomation.com/barcode/UPC-A.html

 

If you have 12 digits already, then the data has probably already been encoded with the barcode algorithm by another process, so you don't need to call the MakeUPCABarcode function. All you need to do is typeset those characters in on of the "IDAutomationUPC" fonts.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...