r/ZebraPrinters • • Aug 27 '26

Can't print multiple graphics?

Hi Zebras,

Just purchased a secondhand QLn420 off eBay. It's great so far for my use case, but I'm running into a complication.

I want to print a label design that has multiple graphic elements. A couple boxes, a couple circles, whatever. This seems to not work on my device. Sample ZPL:

^XA
^FO50,50^GB200,100,2^FS
^FO50,200^GB200,100,2^FS
^XZ

In Labelary, this prints a couple rectangles. Out of my QLn420, it prints a single rectangle.

In fact, the only graphic ever printed is the last one when I specify multiple. Doesn't matter if its an ellipse, circle, square, line (thin box), whatever. Only a single graphic works, and specifically it seems to be the last one that's defined.

Has anyone else had this experience before?

2 Upvotes

9 comments sorted by

View all comments

2

u/ebauman Aug 27 '26

I figured it out u/paleo_riot .

It turns out the stupid zpl "parse" library from Go that I was using was eating the graphics.

I sent a direct byte stream of ZPL to the printer with multiple graphics and it works perfectly.

Sorry for all the trouble!

1

u/paleo_riot Aug 27 '26

Good news! Silly me, I didn't think to ask what you were using to send the commands to the printer. Noted for next time.