Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

EPL2 to image instead of RawText

Posted on 2013-01-22
7
Medium Priority
?
2,553 Views
Last Modified: 2013-02-09
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.

N
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
A30,140,0,3,1,1,N,"Quantity"
A200,140,0,3,1,1,N,"70"Qty
B200,170,0,3,3,5,50,N,"70"Qty
A30,280,0,3,1,1,N,"Description"
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
A30,520,0,3,1,1,N,"Date"
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
P1

Open in new window

0
Comment
Question by:aothomas42
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 14

Expert Comment

by:binaryevo
ID: 38810712
0
 
LVL 16

Accepted Solution

by:
hjgode earned 2000 total points
ID: 38813112
Hello

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

regards

Josef
0
 

Author Comment

by:aothomas42
ID: 38872058
Obtained the EPL2 manual and am printing labels using EPL instead of converting to image.
0
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 

Author Comment

by:aothomas42
ID: 38872429
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
0
 
LVL 16

Expert Comment

by:hjgode
ID: 38872430
That was one of my suggestions, using EPL code to print.
0
 

Author Comment

by:aothomas42
ID: 38872473
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
0
 

Author Comment

by:aothomas42
ID: 38872476
however I just noticed you put the link ti the manual in your answer, thats my mistake I will fix it
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

609 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