Question : vfp - how to print text to tm-u220 printer

Hi,

I am able to open cash draw by sending code to the tm-u220 printer

??? chr(27)+chr(112)+chr(48)+chr(25)+chr(250)
set printer to default

but I do not know how to print text on the printer.
tried a few things without success.

Say I want to print the text with the following output:
"First line  - $10.24"
"2nd line   -  $3.25"


Want to do it the esc/pos way, bec the .frx way is not reliable - getting "epson/printerdriver error:Unable to print. A fatal error has occurred." constantly [on a newly installed window 7 pc]

How should it be coded?
Thanks.

Answer : vfp - how to print text to tm-u220 printer

Since you say the first string works opening the cash drawer, just try the three question mark solution with the text you want with your Epson printer set as the default.

??? "First line  - $10.24"
??? "2nd line   -  $3.25"

The ??? only needs to be followed by a legitimate expression.

??? Command
http://msdn.microsoft.com/en-US/library/f5c41twb(v=VS.80).aspx
Random Solutions  
 
programming4us programming4us