Issue with printing >100 labels in one command

Hello,

 

I'm working on printing to a Zebra printer via HTTP POST, following the guidelines in https://developer.zebra.com/community/technologies/printers/label-printers/blog/2015/03/31/printing-from-websites-part-2…. Thanks for the helpful post! I'm using the Python requests library to send a POST request to the printer directly (handling this on the server side to avoid the CORS issue), and it's mostly working as expected.

 

However, I'm running into an issue with printing a large number of labels in one command. I have 100 labels of the form ^XA ... ^XZ which are concatenated into one command and then sent to the printer. However, only ~70 of the 100 labels are actually printed. Is there any way to get around this issue?

 

Thanks!

Samantha Corn
Hi Reed,The printer may be

Hi Reed,

The printer may be timing out before receiving all of the labels' data. Are all the labels unique? If there are repeat labels in the mix, you could try adding the ^PQ command to have one label printed multiple times. This would decrease the amount of data being sent across the connection. More information on the ^PQ command can be found on page 296 of the ZPL Programming Guide.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Anonymous (not verified)
Hi Reed, What is the total

Hi Reed, What is the total amount of data you are sending?  Are random labels not being printed or is it just printing the first 70+?  The printers do have a buffer for print data that you might be overloading.  It also may be a network issue.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments