Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set printer row() and col() to zero
Message
From
09/11/2004 08:01:48
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
09/11/2004 01:40:08
Hee Lim Wang
Fantasy Software Enterprise
Malaysia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00958751
Message ID:
00959502
Views:
11
You can send codes directly to the printer - and I suspect, to the cash drawer as well - with the "???" command. The following example will send codes to the printer, and then print the report:
ReportInRAM = FileToStr("myreport.txt")
??? chr(27) + "p101" + ReportInRAM
>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....
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform