Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Switching printers in VFP
Message
De
22/10/1997 18:27:18
Ian Johnston
Computer Software Solutions
Woodland, Californie, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00055441
Message ID:
00056197
Vues:
32
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform