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:
00056221
Views:
22
>Hi thank you for the reply.
>
>I tried using the syntax: SET PRINTER TO NAME
>
>but I get the following error: ERROR LOADING PRINTER DRIVER
>
>I also get this error when I preview a report and send it to print from the print Icon.
>
>
>
>>>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


I had this error when the printer name had () in it and I was
trying to do macro substution. I renamed the printer and this
took care of it.


Charles
Charles

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

Click here to load this message in the networking platform