Based on this question , I applied the following code to send direct commands to the Zebra TLP2844
var cmm: AnsiString; i: integer; begin commands.saveToFile('path\to\a\file'); Printer.BeginDoc; cmm := ''; for i := 0 to commands.Count-1 do cmm := cmm + commands[i] +
commands is a TSringList containing all the commands that I want to send to the printer. Please note that I save all the commands in a text file.
Well, if I send this text file for printing using the driver settings, using tools β Action β Send file, it will print fine.
If I use the code above, after printing it overlays a few extra lines of labels.
It shows me, obviously, that I am doing something wrong here, but I cannot understand that.
What i tried
- Send commands one by one, and not concatenate them, as in the code. Results: nothing is printed.
- Change # 10 to # 13 # 10. Results: The same insane behavior (indeed, the Zebra EPL document claims to ignore any found # 13).
What else should I try to send commands to the printer just like Zebra does?
source share