I'm trying to develop a c# app with xamarin forms to print some zpl commands but my printer is just printing text.
I've tried using Zebra SDK and Link-OS SDK to set the printer's language, but it keeps printing text.
Zebra SDK:
SGD.SET("device.languages", "zpl", printer.Connection);
or
printer.SendCommand("! U1 setvar \"device.languages\" \"zpl\"\r\n");
printer.SendCommand("^XA ^FX Third section with bar code. ^BY5,2,270 ^FO100,550^BC^FD12345678^FS ^XZ");
Link-OS:
conn.Write(new UTF8Encoding().GetBytes("! U1 setvar \"device.languages\" \"zpl\"\r\n"));
var t = new UTF8Encoding().GetBytes("^XA ^FX Third section with bar code. ^BY5,2,270 ^FO100,550^BC^FD12345678^FS ^XZ");
conn.Write(t);