Sending raw data to FedEx Label printer

Sukhbir S. Dadwal picture Sukhbir S. Dadwal · Sep 23, 2008 · Viewed 8.4k times · Source

I'm working on a .NET WinForms app that needs to print a FEDEX shipping label. As part of the FedEx api, I can get raw label data for the printer.

I just don't know how to send that data to the printer through .NET (I'm using C#). To be clear, the data is already pre formatted into ZPL (Zebra printer language) I just need to send it to the printer without windows mucking it up.

Answer

Adam Davis picture Adam Davis · Sep 23, 2008

C# doesn't support raw printing, you'll have to use the win32 spooler, as detailed in this KB article How to send raw data to a printer by using Visual C# .NET.

Hope this helps.

-Adam