Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing directly to LPT1?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00026626
Message ID:
00026744
Views:
31
>I have reports that are saved to a binary memo field. I want to send those reports directly to the printer, bypassing the windows print drivers.
>
>I know that VFP 3.0 can do this, its available in the system menu under "Print", but I can't find a way to do it with code. In order to print the saved reports, presently I am copying the memo to a file, and using the dos copy command. "run copy filename.txt lpt1". This meathod brings up a dos window and is not an acceptable way to print the reports.
>
>Can anyone help?
>
>Thanks Harvey

I believe you can use the VFP 'COPY FILE' command to do this, just make sure that safety is set OFF because LPT1 will be seen as a File Exists, overwrite condition. I could be wrong, but it seems like I tried this once and was successful.
Previous
Reply
Map
View

Click here to load this message in the networking platform