Re: How to print label on network shared printer in ASP.Net

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Fairly easy.
First you need to add Zebra printer under account ASP.NET is using to be
able to print.

check out this article
http://support.microsoft.com/kb/184291/en-us
And this
http://support.microsoft.com/kb/324565/en-us


then in case of Zebra Printer you have 2 choices. You can print label as an
image (which is pretty slow) Or you can print label using ZPL II language
( this is the preferred method).

To print a label with ZPL II language you need to send RAW data to printer.

check out this article
http://support.microsoft.com/kb/322091

I recently had to do same thing (not from ASP.NET though).


PS: If you are printing labels for FedEx look out for ^MD30 command in their
ZPL II string for label. For whatever reason they put that in and that
command bumps up the darkness to the top what in case burns out the head on
thermal printer like yours. And those heads are expensive - about $300

I end up with the code like this

int iIndex = _sLabel.IndexOf("^MD");

if (iIndex != -1)

_sLabel = _sLabel.Substring(0, iIndex) + "^MD00" + _sLabel.Substring(iIndex
+ 5);

RawPrinterHelper.SendStringToPrinter("ZebISQ", _sLabel);


George.


<newbee> wrote in message news:eO03mYSQHHA.996@xxxxxxxxxxxxxxxxxxxxxxx
Hi Paul,

I am new to ASP.NET and ZPL stuff... Could you be kind enough to show me
some sample codes on how to communicate between ASP.NET with the Zebra
Printer? I am communicating to a 140Xilll printer.

Thank you. I greatly appreciate your help.

Newbie



*** Sent via Developersdex http://www.developersdex.com ***


.



Relevant Pages

  • Re: Dedicated Barcode printing recommendations
    ... > using a dedicated label printing program with a Zebra printer. ... > BarTender software from Seagull Scientific. ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Bitmaps
    ... Pretty new to datamax label printers. ... the bmp on my computer in the data directory. ... BUT need to run Zebra ZPL code? ...
    (comp.lang.cobol)
  • Re: Zebra Printing Language
    ... > We have to use a zebra printer to print some specialty labels. ... Here's a 'hello world' label: ... ^FD - Begin field data ... even though python is available on OS/400 ...
    (comp.lang.python)
  • Re: zebra lp 2824 termal printer?
    ... zpl is zebra's language for printing barcode labels on their printers. ... You can't simply print "AAAA" on a label. ... You have to send the command to ... You can buy a zpl manual from Zebra or try to find one on there site. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: TL Ashford / Zebra Printer Problem...
    ... Zebra printer, or something similar? ... If the memory / buffer size on the Zebra ... There is a directive, which doesn't come to mind at the moment, which you can use to enlarge the buffer used for rasterizing the label. ...
    (comp.sys.ibm.as400.misc)