Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Switching printers in VFP
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00055441
Message ID:
00055443
Views:
23
>Hello everyone!
>
>I was just reading an article on Foxpro Advisor and I ran int a line that says that it is possible to tell VFP5.0a to which printer to direct output to programmatically.
>
>Unfortunately, it does not say how, it refers to an article back in 1994 called "SWITCHING A PRINTER IN WINDOWS" I tried searching their site but they do not go back that far.
>
>A long time has passed, would someone please tell me how to tell VFP to print "Invoices" to printer "a" and other reports to printer "b"?
>
>Thanx in advance for for any help.
>
>
>
>Alfred

You can use the command 'SET PRINTER TO NAME' WIN95 PRINTERNAME
or you can use the 'GETPRINTER()'

example
SET PRINTER TO NAME 'HP LASER JET III'
REPORT FORM INVOICE TO PRINT NOCONSOLE

SET PRINTER TO NAME 'OKI DATA'
REPORT FORM XREPORT TO PRINT NOCONSOLE
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform