I am a software engineer. My client is using epson thermal printer TM-T88II printer and is using a software by which receipt is auto cutted after the printing is done. I have given him pay roll entry software, but the paper roll is not cutted after the printing of pay roll voucher and the client has to tear the paper manually by his hand .
I want to know how to cut the paper automatically by code.
If you are using the generic driver you can get the code from epsonexpert.com site or try this
SELECT
CUT MODE AND CUT PAPER
ASCII
GS V m
executes full or partial cut.
HEX
1D
56
m
DEC
29
86
m
m = 0, 1, 48 or 49 cuts
paper
SELECT CUT MODE AND CUT PAPER
ASCII
GS V m n
feeds paper and executes full
or partial cut.
HEX
1D
56
m
n
DEC
29
86
m
n
m = 65 or 66 feeds paper
to (cut position + [n x (vertical motion unit)]) and cuts the paper
n = 0 to 255
I had the same problem, and after going through so many articles, I was getting the message but didn't know how to pass the escape codes. All you need to do is pass the ASCII code of the characters needed preceded by the ASCII code for Escape. In Delphi, we use Char(27) or #27. In my case I used ESC 105 Null and it worked. Here is my sample code, with Str being a TStrings class (A string array object) and the WriteTextFile being a procedure to write the Strings to LPT1 as plain text. Str.Add('*********END**********'); Str.Add(''); Str.Add(#10); Str.Add(#10); Str.Add(#27#105); WriteTextFile(dmMain.LPTFile, Str); any questions, holla me at [email protected] or [email protected]
I use en EPSON TM-T88III with the generic driver in a DOS app. The code DEC 29 86 m has worked!!! THANKS!
Look for this driver on the web
epson_apd_301f
4,151 views
Usually answered in minutes!
I am a software engineer. My client is using HP thermal printer T700 printer and is using a software by which receipt is auto cutted after the printing is done. I have given him pay roll entry software, but the paper roll is not cutted after the printing of pay roll voucher and the client has to tear the paper manually by his hand .
I want to know how to cut the paper automatically by code.
×