Click here to Skip to main content
15,881,757 members
Articles / Programming Languages / Visual Basic
Article

Zebra EPL2 Printing in .Net

Rate me:
Please Sign up or sign in to vote.
2.57/5 (9 votes)
7 Jul 2006CPOL 315.3K   12.2K   39   53
Print to zebra printers using EPL2 commands

Introduction

Attached is a good example on how to print to Zebra printers using the EPL2 commands in .Net.  In the attached file you will find 2 VB.Net 2003 Projects.  The project ZebraPrint is a good reuseable dll file (or you could just use the class) that you can use in VB.Net 2003 or 2005.  The project ZebraTest demonstrates how to print using ZebraPrint.  I have tested it using a Zebra TLP 2844 over a TCP/IP network.  I have not tested it over a COM or Parallel port yet, but in theory it should work.

 

Referances:

https://support.zebra.com/cpws/docs/zpl/zpl_elp_vbnet.htm

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralRe: Zebra ID Card Printing Pin
orcl_cnsv11-Aug-07 22:10
orcl_cnsv11-Aug-07 22:10 
Questionhow to retrieve the values of ~HS/~HI Pin
jagger_mack28-Feb-07 22:16
jagger_mack28-Feb-07 22:16 
GeneralSame problem Pin
Trigrhapy29-Jan-07 7:16
Trigrhapy29-Jan-07 7:16 
Generalprinting from web app- Invalid handle. Parameter name: handle Pin
Joonbug4721-Dec-06 4:21
Joonbug4721-Dec-06 4:21 
GeneralRe: printing from web app- Invalid handle. Parameter name: handle Pin
mircea_de_autogari21-Oct-08 22:16
mircea_de_autogari21-Oct-08 22:16 
GeneralRe: printing from web app- Invalid handle. Parameter name: handle Pin
mihaiantofi29-Oct-08 5:29
mihaiantofi29-Oct-08 5:29 
AnswerRe: printing from web app- Invalid handle. Parameter name: handle Pin
mircea_de_autogari29-Oct-08 7:36
mircea_de_autogari29-Oct-08 7:36 
AnswerRe: printing from web app- Invalid handle. Parameter name: handle Pin
mihaiantofi31-Oct-08 3:56
mihaiantofi31-Oct-08 3:56 
10x Mircea.
Changing the user solved my problem Smile | :)

Mihai
GeneralRe: printing from web app- Invalid handle. Parameter name: handle Pin
GeniousSal14-Jan-09 22:08
GeniousSal14-Jan-09 22:08 
QuestionPrinting images Pin
madval6-Nov-06 10:21
madval6-Nov-06 10:21 
AnswerRe: Printing images Pin
Luis Abreu8-Feb-07 3:20
Luis Abreu8-Feb-07 3:20 
GeneralRe: Printing images Pin
madval8-Feb-07 4:47
madval8-Feb-07 4:47 
QuestionHow can use this code for an USB printer? Pin
txarlie_thomas9-Oct-06 0:09
txarlie_thomas9-Oct-06 0:09 
AnswerRe: How can use this code for an USB printer? Pin
txarlie_thomas9-Oct-06 4:06
txarlie_thomas9-Oct-06 4:06 
GeneralRe: How can use this code for an USB printer? Pin
Dermot O S24-Oct-06 1:40
Dermot O S24-Oct-06 1:40 
GeneralRe: How can use this code for an USB printer? Pin
rcmacdon2-Dec-06 16:30
rcmacdon2-Dec-06 16:30 
AnswerRe: How can use this code for an USB printer? Pin
Vino Rodrigues13-May-07 1:45
Vino Rodrigues13-May-07 1:45 
AnswerRe: How can use this code for an USB printer? Pin
jeremy_jackson3-Jul-08 10:53
jeremy_jackson3-Jul-08 10:53 
QuestionMobile printers Pin
madval2-Aug-06 8:59
madval2-Aug-06 8:59 
AnswerRe: Mobile printers Pin
funkotron762-Aug-06 9:17
funkotron762-Aug-06 9:17 
GeneralException Pin
Kidan1-Aug-06 6:25
Kidan1-Aug-06 6:25 
GeneralRe: Exception Pin
funkotron761-Aug-06 7:07
funkotron761-Aug-06 7:07 
GeneralRe: Exception Pin
whnloo18-Oct-06 20:27
whnloo18-Oct-06 20:27 
GeneralRe: Exception Pin
damndodgeitcom18-Sep-06 4:16
damndodgeitcom18-Sep-06 4:16 
GeneralSending data directly using print spooler Pin
ArciI13-Jul-06 22:28
ArciI13-Jul-06 22:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.