1
votes

I have written a Winforms .NET POS application for a restaurant. The receipt printer in use (Epson TM-U220) only prints junk when my app prints to it.

When I try it with Notepad, it prints a normal text document as junk as well.

The restaurant owner has an old POS application for bill printing; with this application the Epson prints correctly.

My application prints fine with other inkjet and laser printers; I have reinstalled the drivers for the printer but am still in the same situation.

Link to my printing code

1
Have you read the TM-U220 Technical Reference guide?CRM
My first guess is that the image data you're sending to the printer is not what it expects to get. If I had to guess, a receipt printer probably expects ASCII strings (perhaps with a few special characters to control layout and other display).ravuya
ASCII strings so it means we cant print any thing normally from that printer and i have to convert my data to ASCII CODES ..SO HOW TO DO THATuser1429294
Probably @ravuya is right and the printer requires some control characters in order to properly print the files.CRM
i am going through TM-U220 Technical Reference guide , do i have to change ESC/POS mode to driver mode ...user1429294

1 Answers

0
votes

ESC-POS-Command-Guide

I have very little clue about this. But, found the command list document for this printer here - http://nicholas.piasecki.name/blog/wp-content/uploads/2009/12/ESC-POS-Command-Guide.pdf

It has the character code table. Might be you will get some clue.

Also see here - How to send page cut command to Epson printer