Solved

I want to Send Image to Zebra Labeller Printer

Posted on 2011-09-22
7
1,893 Views
Last Modified: 2013-11-13
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 ?
0
Comment
Question by:wanna96
7 Comments
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 36586609
Well, you could start with something like this.

var
  pic : TBitmap;
  picjpg : TJPEGImage;
begin
  pic := TBitmap.Create;
  try
    ScreenShot(0,0,Screen.Width,Screen.Height,pic);
    picjpg.Assign(pic);

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.
0
 

Author Comment

by:wanna96
ID: 36600945
Thank you, but I need more Test.

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

i'm not yet Test Ok m.m
0
 
LVL 20

Accepted Solution

by:
thehagman earned 500 total points
ID: 36971482
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).
e.g.
^GFA,8,8,1,7E81A581A5BD817E

Open in new window

.
should produce a smiley 8 by 8 pixels
^GFA,32,32,2,07e01a58249449224002b801a81db981824183c19009581a47e22004181807e0

Open in new window

.
a more elaborate one
0
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.

 
LVL 16

Expert Comment

by:theo kouwenhoven
ID: 37055846
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.

Regards,
Murph
0
 

Author Comment

by:wanna96
ID: 37153991
Thank you, everyone.

 But ... . I decided to use the Windows driver. ¿. ¿;
0
 
LVL 16

Expert Comment

by:theo kouwenhoven
ID: 37155821
the Windows driver?

Good luck :)
0
 

Author Closing Comment

by:wanna96
ID: 37230359
partially, adivsed to me... 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

Suggested Solutions

Title # Comments Views Activity
strCopies  challenge 17 82
VB6 Compile Compatibility Issue 4 90
Non-recursive backtracking, using a stack 1 102
Regular Expression Calculator Tester 2 57
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

920 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

16 Experts available now in Live!

Get 1:1 Help Now