Printing to a SATO label printer from C#

acole1

Golden Member
Sep 28, 2005
1,543
0
0
I am wanting to print custom labels from a C# program, but I am having some problems sending the print job.

I created a program that just ran the code from the MS KB "How to send raw data to a printer by using Visual C# .NET" (http://support.microsoft.com/kb/322091), but the results were varied.

When I used that program to print to a networked HP printer, it worked fine.

When I sent it to my local PDF printer ("Cute PDF"), it would create a PDF page, but it would be blank.

When I send the print job to a networked SATO M-84Pro label printer, I see the job show up in the Windows queue, but the printer never does anything.

I then tried some more label-printer-specific code from this article (http://nicholas.piasecki.name/blog/2009/03/sending-raw-epl2-directly-to-a-zebra-lp2844-via-c/) which talks about printing to a small Zebra LP2844 label printer. It didn't work either when printing to the SATO, but it does work when printing to a Zebra LP2844 (usb).

Also note that I am able to print Windows printer test pages, text files and the like to the SATO, and they do print (although deformed because of sizes).

Any thoughts?