Printing on a ZXP Series 3 printer using jZebra

801 views
Skip to first unread message

Marius

unread,
Jun 20, 2013, 3:31:44 AM6/20/13
to jzebra...@googlegroups.com
I have tried to use jZebra to print to a ZXP Series 3 card printer, but it doesn't work. A file is sent to the printer queue, but it's stuck there, and nothing is printed.

I'm using Windows 7 and have connected the printer as a USB device.

I tried using ZPL commands:
---------------------------------------------
applet.append("^XA");
applet.append("^FO50,50^ADN,36,20^FDPRINTED USING JZEBRA^FS");
applet.append("^XZ");
applet.print();
--------------------------------------------

Anybody know if ZXP Series 3 card printers are supported? If they are, any idea what I might be doing wrong?

Best regards,
Marius

Tres Finocchiaro

unread,
Jun 20, 2013, 3:54:51 AM6/20/13
to jZebra users

Does the printer support CPCL?  What are the commands you are sending?

--
--
To unsubscribe from this group, send email to jzebra-users...@googlegroups.com
 
http://code.google.com/p/jzebra
 
---
You received this message because you are subscribed to the Google Groups "jZebra users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jzebra-users...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Tres Finocchiaro

unread,
Jun 20, 2013, 3:56:16 AM6/20/13
to jZebra users

Sorry,

Just saw the commands.  I'm familiar with CPCL.  I can locate an old example I have if needed.

Marius

unread,
Jun 20, 2013, 4:03:54 AM6/20/13
to jzebra...@googlegroups.com
That would be great! Thx.

Tres Finocchiaro

unread,
Jun 20, 2013, 10:38:51 AM6/20/13
to jzebra...@googlegroups.com
Marius,

For starters, can you try to print a CPCL test page?  (Note: In my experience, String.fromCharCode(27) is not needed, although the specification mentions it)

applet.append(String.fromCharCode(27)+"A1\r");
applet.print();


If that works, you can try to print a card like this (success may vary depending on your card printer):

applet.append("+RIB 4"); // Monochrome ribbon
applet.append("F"); // Clear image buffer
applet.append("+C 8"); // Adjust intensity
applet.append("&R"); // Reset magnetic encoder
applet.append("&CDEW 0 0"); // R/W encoder format: 0 = ISO default
applet.append("&CDER 0 0"); // R/W encoder format: 0 = ISO default
applet.append("&SVM 0"); // Disable magnetic encoding verifications (use at your own risk!)
applet.append("T 80 600 0 1 0 45 1 JZEBRA TESTING"); // Write ASCII text on the card at coordinates 80:600.
applet.append("&B 1 123456^TESTING/JZEBRA X^789012"); // The magnetic strip data, track 1
applet.append("&E*"); // Actually write the 
applet.append("I 10"); // Print card and send to print ready position
applet.append("MO"); // Move card to output hopper 
applet.print(); 

-Tres

Tres Finocchiaro

unread,
Jun 20, 2013, 10:41:30 AM6/20/13
to jzebra...@googlegroups.com
Correction:, "\r" or "\r\n" is needed after each line (depending on the printer)

applet.append("+RIB 4\r"); // Monochrome ribbon
applet.append("F\r"); // Clear image buffer
applet.append("+C 8\r"); // Adjust intensity
applet.append("&R\r"); // Reset magnetic encoder
applet.append("&CDEW 0 0\r"); // R/W encoder format: 0 = ISO default
applet.append("&CDER 0 0\r"); // R/W encoder format: 0 = ISO default
applet.append("&SVM 0\r"); // Disable magnetic encoding verifications (use at your own risk!)
applet.append("T 80 600 0 1 0 45 1 JZEBRA TESTING\r"); // Write ASCII text on the card at coordinates 80:600.
applet.append("&B 1 123456^TESTING/JZEBRA X^789012\r"); // The magnetic strip data, track 1
applet.append("&E*\r"); // Actually write the 
applet.append("I 10\r"); // Print card and send to print ready position
applet.append("MO\r"); // Move card to output hopper  
applet.print(); 

--
- Tres.Fin...@gmail.com

Marius

unread,
Jun 21, 2013, 4:39:09 AM6/21/13
to jzebra...@googlegroups.com
I tried issuing:

applet.append(String.fromCharCode(27)+"A1\r");
applet.print();

but got a "Command Error" from the printer.

Best regards,
Marius

Tres Finocchiaro

unread,
Jun 21, 2013, 12:52:48 PM6/21/13
to jzebra...@googlegroups.com
Marius,

Please contact Zebra to make sure you are using the right printing language.  I believe all Zebra and Eltron Card printers use EPCL (Eltron Privilege Command Language).

Are you on Windows?  If so, have you already set up the printer according to the TutorialRawXP (Updated instructions for Windows 7 are here).

Please provide as many details as possible so that we can help.

-Tres


--
--
To unsubscribe from this group, send email to jzebra-users...@googlegroups.com
 
http://code.google.com/p/jzebra
 
---
You received this message because you are subscribed to the Google Groups "jZebra users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jzebra-users...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Marius

unread,
Jun 24, 2013, 6:20:09 AM6/24/13
to jzebra...@googlegroups.com
I contacted Zebra, who told me that EPCL is supported. Then (according to the epcl programming manual) the line applet.append(String.fromCharCode(27)+"A1\r") should work.

I also set up the printer according to the instructions provided for Windows 7.

When I start the applet, the printer is found. When issuing the printer commands i get the message "Print successful", but nothing happens.

-Marius

Tres Finocchiaro

unread,
Jun 24, 2013, 1:35:13 PM6/24/13
to jzebra...@googlegroups.com
Marius,

I've had mixed results with the printers and the newline character.

Can you try this?

*REBOOT PRINTER*

applet.appnd("A1\r");

*REBOOT PRINTER*
applet.appnd("A1\r\n");

Check the printer in control panel make sure there are no pending documents.  If so, reboot your computer (or clear the queue manually if you're familiar with doing that).

That's the best I can do at this moment.  I haven't tested that particular printer, but I have used jzebra to prints cards on Zebra printers, so I'm confident it will work.

-Tres

Tres Finocchiaro

unread,
Jun 24, 2013, 1:38:09 PM6/24/13
to jzebra...@googlegroups.com
Typo:

Can you try this?

*REBOOT PRINTER*

applet.append("A1\r");

*REBOOT PRINTER*
applet.append("A1\r\n");

Also, I believe on windows you'll have two printers installed -- The one that uses the Zebra driver, and the one that uses the RAW driver.  Make sure the names are unique enough so that jZebra doesn't print to Zebra driver one!

-Tres
 
--
- Tres.Fin...@gmail.com

Marius

unread,
Jun 28, 2013, 8:53:26 AM6/28/13
to jzebra...@googlegroups.com
I tried both versions and I also tried: applet.append(String.fromCharCode(27)+ "A1\r\n");
I get the message "Print successful" from jZebra, while I get a "command error" on the printer display.
I made sure that the correct printer was chosen and that there were no pending documents.
I also turned the printer off and on again before trying the different versions.

Note: I'll be going on vacation in 1 hour, so I will not be following this mailing list for 3 weeks.

-Marius

Tres Finocchiaro

unread,
Jun 28, 2013, 11:21:07 AM6/28/13
to jzebra...@googlegroups.com
Marius,

I know you won't receive this for 3 weeks, but have you tried installing and using the official Zebra driver?  I believe there is an option in the printer properties to send commands, which is useful in times like this to see if it's a problem with the middleware or not.

-Tres

--
--
To unsubscribe from this group, send email to jzebra-users...@googlegroups.com
 
http://code.google.com/p/jzebra
 
---
You received this message because you are subscribed to the Google Groups "jZebra users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jzebra-users...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Dirk Ielegems

unread,
May 10, 2016, 9:17:58 AM5/10/16
to jZebra users
Hello Tres Finocchiaro,


 I would like to, react on something you wrote a few years ago.


We are trying to send a print job to an Zebra ZXP3. With no success.
We see that the print job includes the same print control sequences, which you discussed.

Could you explain which print language has been used ?

I check already  CPCL en ZPL but couldn't find any match.

Dirk

Op donderdag 20 juni 2013 16:38:51 UTC+2 schreef Tres Finocchiaro:

Tres Finocchiaro

unread,
May 10, 2016, 9:24:42 AM5/10/16
to jZebra users
Dirk,

The ZXP3 is incapable of acting like a raw device and there is no Java API at this time.  In addition it is windows only.  These statements are paraphrased directly from a Zebra engineer, sorry.

There are other card printers that work, but the model you specify is incapable of working with jzebra/qz-print/QZ Tray at this time.

-Tres

--
--
To unsubscribe from this group, send email to jzebra-users...@googlegroups.com
 
http://code.google.com/p/jzebra

---
You received this message because you are subscribed to the Google Groups "jZebra users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jzebra-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dirk Ielegems

unread,
May 10, 2016, 9:40:18 AM5/10/16
to jZebra users
Tres Finocchiaro,


I wanna thank you for you quick response.
To be clear - we aren't usings QZ or Jzebra at this time. 

I saw your explanation of the ESC commando's like the ones below.
applet.append("+RIB 4"); // Monochrome ribbon
applet.append("F"); // Clear image buffer
applet.append("+C 8"); // Adjust intensity

So i wondered which print language was used and if  there is a summary somewhere.
From your answer I gather that i should ask Zebra instead. Correct ?

Greetings,

Dirk

Op dinsdag 10 mei 2016 15:24:42 UTC+2 schreef Tres Finocchiaro:

Tres Finocchiaro

unread,
May 10, 2016, 11:46:10 AM5/10/16
to jZebra users

Roman Krejci

unread,
Oct 5, 2018, 3:14:15 AM10/5/18
to jZebra users
Hi Marius,

I have the same problem.. I am trying to print using ZPL commands, but printer says "Command error". Did you find a way how to use ZPL with this card printer, or is it impossible??

Thanks..
Roman

Dne čtvrtek 20. června 2013 9:31:44 UTC+2 Marius napsal(a):

Sencer SOYLU

unread,
Oct 5, 2018, 6:06:20 AM10/5/18
to jzebra...@googlegroups.com
Hi All,

If you want try print to file function on windows you can learn which language did it use ?

Best Regards...


--
--
To unsubscribe from this group, send email to jzebra-users...@googlegroups.com
 
http://code.google.com/p/jzebra

---
You received this message because you are subscribed to the Google Groups "jZebra users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jzebra-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
H.Sencer SOYLU
Uludağ Üniversitesi 
Elektronik Mühendisliği
0506 870 48 13

Tres Finocchiaro

unread,
Oct 5, 2018, 10:01:12 AM10/5/18
to jZebra users
Per the previous comments, this isn't possible... I'll quote the relevant part... 

The ZXP3 is incapable of acting like a raw device and there is no Java API at this time.  In addition it is windows only.  These statements are paraphrased directly from a Zebra engineer, sorry. 
 
There are other card printers that work, but the model you specify is incapable of working with jzebra/qz-print/QZ Tray at this time.

Reply all
Reply to author
Forward
0 new messages