I need a solution to print a logo at the top of a receipt printed from an Epson TM-T88V printer. I've attempted to use examples for ESC/POS from the net without any success including writing various ESC commands to the printer port. Currently I'm writing the receipt data to a text file and sending it to the printer as text and re- writing the text file to the printer port.
The following is a simplistic approach that doesn't work because the printer cuts the paper off after the logo prints with the 'EndDoc' command...
procedure TForm1.Button7Click(Sender: TObject);
F, F1: TextFile;
with Printer do
Lines := TStringList.Create;
Printer.Canvas.Font.Size := 10;
for Index := 0 to Lines.Count-1 do
Help with either an ESC/POS solution or printing text and graphic together using TPrinter would be greatly appreciated.