General information
Category:
Coding, syntax & commands
You need to use
SET PRINTER TO NAME(win95 name)
check out MS KB # Q162798 this explains this. You may also want to check out # Q99094 on setting custom form sizes.
>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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only