Emulate ZPL printer

So, to emulate ZPL printer on your mac (possibly windows too): Install this chrome app Zpl Printer Go to printer settings, add new one. Port can vary. Double-check it. Make sure everything turned on. To test it, try in your terminal: lp -o “raw” -q1 -d zpl <<< “CT~~CD,~CC^~CT~^XA~TA000~JSN^LT0^MNW^MTT^PON^PMN^LH0,0^JMA^PR6,6~SD15^JUS^LRN^CI0^XZ^XA^MMT^PW508^LL0203^LS0^BY4,3,138^FT48,155^BCN,,Y,N^FD>;12^FS^PQ1,0,1,Y^XZ” If everything tuned properly, in ZPL … Read more

Unicode characters on ZPL printer

I just discovered that you need to escape characters above ASCII by first putting ^FH before any ^FD fields that could contain a utf character and you need to prefix the utf-8 hex code with an underscore _D0_94 will print as Д. My final ZPL code is as follows: ^XA ^LH100,150 ^CWT,E:TT0003M_.FNT ^CFT,30,30 ^CI28 ^FT0,0^FH^FDTesting … Read more

.NET code to send ZPL to Zebra printers

This way you will be able to send ZPL to a printer no matter how it is connected (LPT, USB, Network Share…) Create the RawPrinterHelper class (from the Microsoft article on How to send raw data to a printer by using Visual C# .NET): using System; using System.Drawing; using System.Drawing.Printing; using System.IO; using System.Windows.Forms; using … Read more