cancel
Showing results for 
Search instead for 
Did you mean: 

Barcode 39 ZPL too wide

Former Member
0 Kudos

Hello,

I don't know if I'm right here, but I should print a barcode 39 and it is too wide for our label...

Here are the ZPL commands I used (printer is a Zebra ZM400):

^XA

^FO50,145

^B3N,N,126,Y

^FD300614500038930005805010737^FS

^XZ

I tried using the ^BY1 Command but then it is too small - so the scanner isn't able to read it.

The width should have max 8,5cm. Now it has about 11,5 cm.

Could you help me please?

Thanks in advance!

Best regards

Marcel

Accepted Solutions (1)

Accepted Solutions (1)

alexander_bolloni
Contributor
0 Kudos

Hello Marcel,

I see you are composing the ZPL commands directly in the SAP form.

From the ZPL2 manual I see that width and height parameters of  barcodes can be set via the ^BY command ("Barcode Field Default"):

^BYw,r,h

where

w = module (narrow bar) width in dots  (1 ..10)

r = wide bar to narrow bar width ratio (2.0 ... 3.0)

h = height of bars in dots (1..32000)

Attention: according to the manual, these settings stay in effect for consecutive barcodes as well!

Regards,

  Alex

Former Member
0 Kudos

Hi Alex,

thanks, I had the wrong Syntax, it works with ^BY2,2.0,126

Kind regards

Marcel

Answers (1)

Answers (1)

Florian
Active Contributor
0 Kudos

why don't you use the barcode technology in SAP itself instead of hurt yourself doing it with the commands?

You can easy archive that by using smartforms or better IfbA.

Or do I not get your problem right now?

~Florian