Not able to store graphics on Zebra GK420t - JAVA - Windows 8.1

Hello everyone I'm trying to store an image on a Zebra GK420t printer before printing. This image must be converted pcx black and white before being sent through the commands of the documentation. With the command "GI", the printer prints a ticket if the image has been saved or not.The "GM" command allows me to save the image, I tried to send a file containing the path of the image, directly send the image path in string but nothing happened. The "GK" command just above deletes an image stored in the machine that has been registered before with the same name as the one that I want to store now.

 

I do not understand why my order does not pass on the machine. I join you the doc and my code in hopes that someone could help me.DOC: http://zupimages.net/up/16/30/8wep.pngCODE: http://zupimages.net/up/16/30/r52j.pngDo not pay too much attention to the comments, I keep them for different tests. My code really starts at ligne 95.Thank you in advance

Anonymous (not verified)
Hi Arnaud, Can you post the

Hi Arnaud,

Can you post the printed output of the GI command?  It may be that you don't have enough memory for the graphic.  Also you seem to be intermixing carriage returns and line feeds.  I'm not sure how much difference this makes but I would stick with just carriage returns or both: "/r" or "/r/n".  I'll put this question to one of our EPL experts as well to see if they have any thoughts.

Robin West

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Arnaud Trosch
Hi Robin,The printed output

Hi Robin,

The printed output of the GI command is "No Graphic stored". I already managed to print the same pcx file with a Zebra GK420t thanks to a java code based on Linux and not Windows, so I am sure that the size of my picture is not a problem. Also, when I run the code I am not able to change the name of my pcx file anymore, it shows that it does something without sending it to the printer.

I already tried to use "/r/n" everywhere but it didn't work neither. I'll try it again tomorrow to be sure.

Thanks for your help !

Arnaud

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Anonymous (not verified)
Hi Arnaud,Can you verify that

Hi Arnaud,

Can you verify that you are using the latest firmware on your printer? (V61.17.17Z) 

Also what communication method are you using?  Serial, USB, or network?  There are certain flow control parameters that can cause this sort of issue.

Robin West

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Arnaud Trosch
Hi Robin,I verified the

Hi Robin,

I verified the firmware thanks to the "U" command, and I have the latest one (V61.17.17Z).

I am using USB to communicate with the printer.

I tried again to use "\r\n" or "\r\, I had no answer from the printer or it printed "No Graphic stored" as usual.

I send you the different java code that I've tried and didn't work for me.

Arnaud

http://zupimages.net/up/16/30/y60w.png

http://zupimages.net/up/16/30/b811.png

http://zupimages.net/up/16/30/ta11.png

http://zupimages.net/up/16/30/7mnl.png

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Arnaud Trosch
I wanted to speciify that I

I wanted to speciify that I can write text, print bar codes... but the only thing that still doesn't work is the GM command.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Arnaud Trosch
It still doesn't work for me,

It still doesn't work for me, I tried everything I could to solve the problem

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Arnaud Trosch
Hello,I tried to use the "GW"

Hello,

I tried to use the "GW" command to print, after a day of work this command doesn't work neither.

The documentation is so so so unclear, what does it mean "Raw binary data" ? I tried to send hexa code, binary code... but nothing works, it prints black rectangles with little dots of white.

I do not understand why there are not exemples showing how to use your commands. I found a lot of topics about this issue but the answers are unclear too, it would be fantastic to have the code + the pcx image linked to the exemple to understand how it works on Windows...

Still hoping that someone could help me

Thanks for reading,

Arnaud

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Arnaud Trosch
I finally found out how to

I finally found out how to print a graphic, I'm posting the answer for future users.

Here is the java code :

http://zupimages.net/up/16/31/yrwe.png

In fact, I had to realize that the printer could understand EPL code and ZPL code. As I tried everything I could around the EPL I decided to send things in ZPL and it worked !

First step :

- Register your graphic in the printer. You need to download  - ZebraNet Bridge Enterprise -, that ables you to convert your picture into a zpl file.

- When you're done, you need its code. For example, open it with with the bloc note so that you can copy the data and send it directly to the printer.

Finally :

Send :

"^XA";

"^FO20,20^XGR:{NAMEOFGRAPHIC},1,1^FS"

"^XZ";

to print the graphic.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Anonymous (not verified)
Hi Arnaud,Sorry it took me so

Hi Arnaud,

Sorry it took me so long to respond.  I'm glad you got things working.

We keep EPL around for legacy users but do not really recommend new development with it.  Partially because there are so few experts anymore.  Our SDK's and much of our software only work with ZPL and CPCL.

Robin

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments