Code doesn't fit into label - please help!

// Expert user has replied.
A Alexander Herrmann 2 years 11 months ago
329 1 0

Hello,
 
I've searched for a solution, but didn't find one. Perhaps you can help me:
 
I've a small label (4 x 2 cm, GK420D) and I want to place a barcode. The problem is that this barcode will change for every item in type and length. For example: a code with 16 characters (CC00000000001234) is fitting well on the label, BUT a shorter code with just 13 characters (9GG1234L98765) doesn't fit (is to long) ! Why?
 
Here is my ZPL code - what's wrong with it?
 
LOOKS GOOD:
^XA
^LH145,15
^FO0,40^BY2^BCN,40,Y,N,N,A^FDCC00000000001234^FS
^XZ
 
LOOKS BAD:
^XA
^LH145,15
^FO0,40^BY2^BCN,40,Y,N,N,A^FD9GG1234L98765^FS
^XZ
 
I've tested it with ZPL Viewer and printed it, in both situations the barcode is to long - when I'm using the shorter code!
 
Thanks a lot for your help!!!
 
Alex

Please register or login to post a reply

1 Replies

S Samantha Corn

Hi Alex,
Unfortunately, Zebra barcodes size with the size of the data you encode. While the number of characters has some effect, printing alphanumeric codes also make barcodes longer. You can try making all of your barcodes narrower by changing the ^BY2 to ^BY1, which changes the default module width and results in the whole barcode being narrower.

CONTACT
Can’t find what you’re looking for?