My application needs to print invoices, then a get the invoice from database, insert information on the invoice in a big string (telling the line, column, etc.) after this I have the string ready to be sent to a printer.
My problem is: I need to put some ESC/P commands/characters in my big string
I tried to do something like this:
char formFeed = (char)12;
Convert.ToChar(12);
MyBigString.Insert(10, formFeed);
Whith this, the line 10 will do a FormFeed, but this doesn't work
NOTE: I send the MybigString all at once to the printer.
To make my code works, I need to send the data line by line to a printer?
Thanks for the help.
PS: Sorry, for my English, I'am a Brazilian developer which don't speak English (yet).
question from:
https://stackoverflow.com/questions/65926450/how-to-send-ascii-command-to-epson-printer-from-c-sharp 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…