Menu
  • HOME
  • TAGS

CharPrinter in ZEBRA Printer XE7

delphi,zebra

This happened cause Delphi switched to Unicode strings in Delphi 2009. Unicode strings use 2 bytes for every char. Older Delphi versions used 1 byte for every char. So you must make some changes in ChatPrinter.pas. Try to edit this (not tested): procedure TCharPrinter.SendData (aData : String); var Data :...

Zebra label printer c# SDK

c#,printing,zebra-printers,thermal-printer,zebra

I'll add the source link later when I find it, but this is how I print to our Zebra as of now: [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] public class DOCINFOA { [MarshalAs(UnmanagedType.LPStr)] public string pDocName; [MarshalAs(UnmanagedType.LPStr)] public string pOutputFile; [MarshalAs(UnmanagedType.LPStr)] public string pDataType; } [DllImport("winspool.Drv", EntryPoint = "OpenPrinterA", SetLastError = true,...