Thanks Lacutah.
But, i have another question...
I supose that i need to send a string as the DATA parameter.
Could you please give a example of how this string could be?
Thanks!
Main Topics
Browse All TopicsI am trying to send an image to the Zebra TLP 2844 in binary format. It uses the EPL2 language, which has the following command.
*********** TYPED FROM PROGRAMMING MANUAL
GW - Direct Graphic Write
Description: Use this command to load binary graphic data directly into the Image Buffer memory for immediate printing. The printer does not store graphic data sent directly to the image buffer.
The graphic data is lost when the image has finished printing, power is removed or the printer is reset, etc. etc.
Syntax: GWp1,p1,p3,p4DATA
Parameters:
p1 = Horizontal start position (X) in dots.
p2 = Vertical start position (Y) in dots.
p3 = Width of graphic in bytes. Eight (8) dots = One (1) byte of data
p4 = Length of graphic in dots (or print lines).
DATA = Raw binary data without graphic file formatting. Data must be in bytes. Multiply the width in bytes (p3) by the number of print lines (p4) for the total amount of graphic data. The printer automatically calculates the exact size of the data block based upon this formula.
*************** END OF MANUAL
I alread have the method that i use to send strings directly to my LPT1 Port, but i have no idea of how could i send this image.
Could anybody help me please?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
No. My label will have my Company Logo, that is the image that i trying to print, some text information, and a barcode. All these comands are being sent and are working correctly, except the image...
The manual doesn't tell how the string should be formated. The manual says only that what a mentioned above...
Thanks again for your help!
Hi mjimeno
No, I tried to apply the information above, but i didn't worked. The closest solution that i found was a Delphi code, that could be found on the EE searching for the GW funcion. I tring to convert the Delphi code to VB.Net, but i did't finished yet because i'm not expert in Pascal. If i find any solutions, i'll post here and, if you find something before me, plese let me know too.
Thanks!
Business Accounts
Answer for Membership
by: LacutahPosted on 2005-04-14 at 18:54:58ID: 13787482
Essentially, it sounds like you need to break the images into pixels, 1 = pixes on, 0 = pixel off, gather 8 pixels at a time, and send a byte array(?).
So, if you have a bitmap image (B&W), you could use it's width for p3, it's height for p4, number of bytes in the array would be:
Dim numBytes As Integer = (p3 * p4) \ 8
If (p3 * p4) Mod 8 > 0 Then numBytes += 1
and you can use the bitmap.GetPixel(x,y) to determine if the bit should be on or off:
If bmp.GetPixel(0, 0).Equals(Color.Black) Then ...