I want to Send Image to Zebra Labeller Printer

I want to make a Program that Send a Image to zebra Printer (RZ4000 or Pax4)

I Use Delphi10.

my concept is capture screen and convert to pcx or grf format. then send a zebra printer.

I don't want use any tool. like barone or Ztools. I want coding Delphi.

Can I get a sample code ?
Who is Participating?
thehagmanConnect With a Mentor Commented:
The Zebra ProgrammingLanguugae II is described here: http://www.ptshome.com/kb/Manuals/ZPL_Vol1.pdf
(Apparently zthere is also a vol II, but I just read vol I).
I suggest you use the "^GF" command described on page 156.
I would also suggest to simply use binary data ("B").
If I remember my own implementaion of Zebra printing correctly, the binary data is simply sent row by row with 8 pixels combined in one byte in the obvious manner, and the row length must be a multilpe of 8 (i.e. complete bytes).

Open in new window

should produce a smiley 8 by 8 pixels

Open in new window

a more elaborate one
Well, you could start with something like this.

  pic : TBitmap;
  picjpg : TJPEGImage;
  pic := TBitmap.Create;

Open in new window

Then you can do anything with the jpeg. If you need it in pcx, then you'll need tools or the code behind them. This one works well http://www.efg2.com/Lab/Library/Delphi/Graphics/PCX.ZIP
If you really don't want to use it as a tool, then just extract the code you need and use that.

The method of sending it to the printer should be in your API reference for the printer.
wanna96Author Commented:
Thank you, but I need more Test.

Image sending to zebra printer is very difficult ¿.¿;

i'm not yet Test Ok m.m
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

MurpheyApplication ConsultantCommented:
Image sending to zebra printer is very difficult ¿.¿;

Hi wanna96,

Sending stuff to a Zebra or Stripe printer is not difficult at all,
just put all label data in a text file, FTP it to the printer and it will work.
There are 2 advantages of FTPing instead of using drivers etc
1-No risk of getting extra information from the driver in your datastream.
2-FTP it to an other address (a server) and you are able to see what is exactly send from your application.

wanna96Author Commented:
Thank you, everyone.

 But ... . I decided to use the Windows driver. ¿. ¿;
MurpheyApplication ConsultantCommented:
the Windows driver?

Good luck :)
wanna96Author Commented:
partially, adivsed to me... thanks..
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.