Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
POS Cashdrawer
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00884120
Message ID:
00885401
Views:
15
Hi
Windows printing strips out certain characters. Here is a simple workaround that I have used for years with the only issue that it flashes a brief DOS window. I fill a text file with the characters needed in this case on an Epson TMT88 printer to fire the till.
=StrToFile(CHR(27)+CHR(112)+CHR(0)+CHR(94)+CHR(121),"Till1.txt")
I then issue the command:
RUN TYPE TILL1.TXT>LPT1
This uses a redirection DOS command to output the contents of the text file to the printer (in this case LPT1)
Cheers
John
To move a mountain start with the smallest stone
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform