I am using the FedEx Rest API to create shipments and I have no trouble printing PNGs. However, I also need to have an option for printing on Zebra thermal printers, which is where ZPL format comes in. I need to print over USB and I am using VB.NET.
I've tried to use GrapeCity's ActiveReports library but I can't seem to find an option for just sending a string/raw data. I've also tried this RawPrinterHelper.
Any help would be greatly appreciated.
I've set up a printer called "TLP2844" attached to my local computer which connects to my TLP2844 via USB.
This is the batch file that I use to print to that printer
If this file (I call it
2844.bat) is placed in any directory on thePATHthenwill print on the 2844. Quotes are only required if the filename contains separators like spaces.
Replace
%computername%withservernameif required.Essentially, all you need is a proper text editor (I use
EDITPLUSbut there are many others) to create simple text files containing the ZPL code.Don't use a word-processor or
notepadas these have a habit of "helpfully" reformatting the file as though it was a document.