Issue with printing >100 labels in one command

// Expert user has replied.
R Reed Molbak 3 years 7 months ago
1517 2 0

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-print……. 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!

Please Register or Login to post a reply

2 Replies

Y Yanis Dalabiras

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.

S Samantha Corn

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.

CONTACT
Can’t find what you’re looking for?