Solved

Send ZPL clear memory command from Word label

Posted on 2012-03-29
4
3,278 Views
Last Modified: 2012-04-26
Hi.  I have a zebra GX420D desktop thermal printer.  I send a label print to this printer from MS word.  Problem is that the buffer does not clear so new print data sent to the zebra from word overlays on top of the previous data.  I can send a erset command from prniter driver software but wuold liek to add it to my label either at end of each print or start of new print.

How would I add reset command to my word label?
0
Comment
Question by:valmatic
  • 2
  • 2
4 Comments
 
LVL 38

Expert Comment

by:hdhondt
ID: 37786310
As far as I am aware there is no way to do it from Word.

One possibility would be to create a macro which first downloads a file with the reset command to the printer, and then prints from Word. You could use something like AutoHotKey to create the macro.

Sending the command file is easy if the printer has a parallel or serial i/f. A simple DOS COPY will do the trick. If the printer is network attached, you'll need to use LPR. For a USB printer, your best bet is to share it, and map it to LPT1 using the NET USE command. Then you can use DOS COPY again.

This gets more complicated if you print multiple labels: in that case the macro will have to print each label individually, interspersed with rest commands.
0
 
LVL 7

Author Comment

by:valmatic
ID: 37787374
Hi HD,

printer is network attached and we print one label print job at a time.   What is the reset command?  

Isn't there a setting on the printer where I can say clear buffer after each print or print request?
0
 
LVL 38

Accepted Solution

by:
hdhondt earned 250 total points
ID: 37790570
According to the ZPL Programming Guide, the reset command is "~JR" (without the quotes). If you put that in a file you can send it to the printer with the command

LPR -S printer_IP_address -P ZPL file_name

I could not find a command in the manual to clear the input buffer.

However, I have another problem with all of this. It is quite possible that the driver sets up the printer in a certain way before it sends any printing data. If you then reset the printer after the first label, that setup is lost and subsequent labels may not print correctly, if at all. You would need a Zebra expert to tell you what can or can't be done in the middle of a driver printstream.

Of course, you can always try it...
0
 
LVL 7

Author Comment

by:valmatic
ID: 37796234
I'm using the ZDesigner driver.  Failed to mention.  I've had this printer in production for a little over a year and have not seen this issue before.  I also print labels to it from a program call on our IBM AS400.  Made a change to that program call and this issue with Word started up.  I can clear the buffer after printing AS400 labels but still does nothing for my word labels if I print from word back-to-back.    Called Zebra and they recommended a firmware upgrade.  Will try that and post results.  

If nothing else, maybe I can set my user up with a macro as you suggested to send the reset after each print.  A pain but quicker than a printer reboot...thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Authors who set out to write any sort of lengthy piece for online submission—be it a long question or comment on a technical form, an article, or a substantial blog entry—often find it useful to work up a draft in an editor other t…
It is often necessary in this forum and others to illustrate Word fields as text with the field delimiters replaced with the curly brackets that the delimiters resemble when field codes are being displayed on the document. This means that the text c…
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …
Office 365 is currently available in five editions. Three of them are for business use: Office 365 Business Essentials, Office 365 Business, and Office 365 Business Premium. Two of them are for home/personal use: Office 365 Home and Office 365 Perso…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now