Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Feed paper on POS Printer C#

I've been trying to programatically feed the paper on a pos printer (Epson TM-U220D). The problem I have is that the last line of the document don't get printed, instead, it is printed as the first line of the next document printed. I tried POS for .NET sending the "ESC|flF" command, also tried to send the raw esc/pos command using the serial port, but it doesn't work. Any ideas?

like image 858
evargas Avatar asked Oct 16 '08 04:10

evargas


1 Answers

You will need sooner or later the full ESC/POS Application Programming Guide. I did obtained a copy from my EPSON dealer some years ago. In the meantime, I have found with Google a link to the FAQ for ESC/POS here: https://web.archive.org/web/20111229102746/http://postechgroup.com/updata/support/drivers/EPSON/FAQ_ESCPOS.pdf

In your case, the LF control command prints the data in the print buffer and feeds one line based on the current line spacing.

ASCII: LF

Hex: 0A

Decimal: 10

like image 194
alexandrul Avatar answered Oct 14 '22 03:10

alexandrul