Skip to Content
avatar image
Former Member

Barcode 39 ZPL too wide

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jan 13, 2015 at 03:26 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 12, 2015 at 05:53 PM

    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

    Add comment
    10|10000 characters needed characters exceeded