Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set printer row() and col() to zero
Message
From
09/11/2004 04:33:24
Hee Lim Wang
Fantasy Software Enterprise
Malaysia
 
 
To
09/11/2004 04:15:48
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00958751
Message ID:
00959439
Views:
15
Thank a lot !




Create a file with the characters to eject the cash drawer
STRTOFILE(CHR(27)+'p101','eject.txt')
To eject:
COPY FILE eject.txt TO LPT1:
Be sure to replace LPT1: with the corresponding printer port or UNC, for instance \\myserver\printer1


>If I want to kick out cash drawer before printing receipt with report form
>what should I write ? cash drawer command is chr(27)+'p101'
>How to mix these two things together ?
>currently I run external dos program to kick out first, but it doesn't look nice......
>
>Have you tried my solution? The thing is that in order to reset PROW and PCOL, you must EJECT. So what I do is send the eject to a file, and then delete the file. I have done this for 10-15 years without any problem so far.
>
>>Eject will eject whole page of paper size, that is not what I want....
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform