cancel
Showing results for 
Search instead for 
Did you mean: 

Reduce the width of the barcode - Barcode on a smartform using ZPL code

Former Member
0 Kudos

Hi,

I have a requirement where I need to generate a shipment label on a Zebra printer using the smart form.

Following is the code I used for to generate a barcode :

^B3N,N,0045,N,N^FO590,390^FD&ZdLE_CARTON_LBL-PO_NUMBER&^FS

The issues here the width of the barcode is proportional to the po number text. But it does not fit into the box space I have reserved for it. I am wondering if there is a way we can reduce the width of the barcode.

Please let me know your suggestions.

Thanks,

Vijay.

Note : I referred so many posts in SDN but none could give me a solution.

Accepted Solutions (1)

Accepted Solutions (1)

former_member1115366
Active Participant
0 Kudos

The density of a bar code appears to be controlled by the line of ZPL code that precedes the one you have posted.

This example generates a u201Clow densityu201D SSCC-18 bar code.

^BY4,2.5^FS
^FT81,1117^BCN,254,N,N,Y^FD>;>800114400140001599032^FS

Here is the same bar code with a u201Chighu201D density. It prints at half the width of the one above.

^BY2,2.5^FS
^FT81,1117^BCN,254,N,N,Y^FD>;>800114400140001599032^FS

Iu2019m not a ZPL code monkey. Iu2019ve just trial-and-erred my way thru a lot of these labels.

Hope it helps.

Answers (0)