Print incorrectly in zebra GX430t

Mar 20, 2013 at 5:50 PM
Apparently the printer not interprets the zpl data
For example using the command

commands.Add(ZebraCommands.BarCodeCommand(0, 1, ElementRotation.NO_ROTATION, 1, 2, 3, 40, true, "^XA^FO100,100,^AO,30,20^FDZPL Utility^FS^FO50,130^BY3^BCN,100,Y,N,N^FDHELLO WORLD^FS^XZ"));

interprets the data as text and not as ZPL.

However, the same example works well in Zebra ZM400.

Anyone know about it?

Mar 21, 2013 at 4:14 PM
You shouldn't be entering the ZPL code in, that is the point of the library! My ZPL is a bit rusty now, but I think this gives what you were trying:

commands.Add(ZPLCommands.TextWrite(100, 100, ElementRotation.NO_ROTATION, 30, "ZPL Utility"));
commands.Add(ZPLCommands.BarcodeWrite(50,130, 100, ElementRotation.No_ROTATION, new Barcode {type=BarcodeType.CODE128_AUTO}, true, "HELLO WORLD"));
Mar 21, 2013 at 6:21 PM
Rkone thanks for your help,

I could do it directly using

var zebraPrinter = new ZebraPrinter("MyPrint");
zebraPrinter.Print("^XA^FO100,100,^AO,30,20^FDZPL Utility^FS^FO50,130^BY3^BCN,100,Y,N,N^FDHELLO WORLD^FS^XZ");