I need to store a couple of labels in ZPL format in a Zebra printer. I'm using Zebra SDK with C#
My code:
foreach (var label in Directory.GetFiles(@"C:\Labels\"))
{
PrinterUtil.StoreFile(CONNECTION_STRING, label, item.Replace(@"C:\Labels\", "R:"));
}
The file uploads, but does not print because at the first line the printer add an extra ^XA or in some cases ÿþ^XA. The original file already starts with ^XA. So I have to remove the line that the printers adds to been able to print the label.
Is there some configuration code I'm missing? Any ideas?