EPL2 to image instead of RawText

I have the below code that I put in a Stringbuilder and it works fine when I sent it to the printer as raw text. However I would like to use this same code and send it to the printer as an image. Any help would be appreciated.

A30,0,0,3,1,1,N,"Part No"
A200,0,0,3,1,1,N,"ABCDEFGHIJKLMNOPQRST" Part Number
B30,30,0,3,2,4,50,N,"ABCDEFGHIJKLMNOPQRST" Part Number
A200,280,0,3,1,1,N,"IDIN 931 M16-2.0X120 HEX" Description Line 1
A200,310,0,3,1,1,N,"CAP SC GR10.9 ZY" Description Line 2
A30,390,0,3,1,1,N,"Purchase Order No"
A300,390,0,3,1,1,N,"075123456" PO
B30,420,0,3,2,4,50,N,"075123456" PO
A150,520,0,3,1,1,N,"9/18/2012" Date
A500,520,0,3,1,1,N,"Made In"
A500,550,0,3,1,1,N,"CHINA" Made in Country
A30,565,0,3,1,1,N,"Lot No"
A180,565,0,3,1,1,N,"1978289 CHINA 72107" Lot

Open in new window

Who is Participating?
hjgodeConnect With a Mentor Commented:

I assume you are using a zebra printer supporting the zebra EPL2 (Eltron Printer Language)  printing language.

I would not go the way to transform text data to image data:
a) image representation of your text will increase the data size
b) sending more bytes to the printer will increase transfer time
c) printer normally takes longer to process image data than text data

Using image data on such printers should be used only for logo and other images.

If you want to go with an  image of your text lines, you have two options:
1. Create an pcx image and download the pcx to the printer and then issue printer commands to let the printer read the pcx from its flash memory and print it.
2. Create a binary image and send it to the printer each time you need it.

An example of the operations for option2 is viewable at http://blog.esumina.com/2011/10/printing-bitmaps-and-chinese-to-zebra.html

Another simple example of EPL2 GW command (direct graphic print): https://support.zebra.com/cpws/docs/eltron/gw_command.htm

To use a pcx image file you need first create a black&white pcx file on PC, download that to printers flash memory (use the printer tools to do so) and then use EPL2 GG command to print the stored pcx file.

See EPL2 programmin guide and more support for Zebra and EPL2 at https://km.zebra.com/kb/index?page=content&channel=SAMPLE_CODE


aothomas42Author Commented:
Obtained the EPL2 manual and am printing labels using EPL instead of converting to image.
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

aothomas42Author Commented:
I've requested that this question be closed as follows:

Accepted answer: 0 points for aothomas42's comment #a38872058

for the following reason:

DId not use any of the solutions offered
That was one of my suggestions, using EPL code to print.
aothomas42Author Commented:
If you read the original question you will see I was already using epl. I was exploring cinverting it to an image instead of sending raw text. However after I found the epl2 manual I figured out what I was doing wrong
aothomas42Author Commented:
however I just noticed you put the link ti the manual in your answer, thats my mistake I will fix it
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.