Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Switching printers in VFP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00055441
Message ID:
00056049
Vues:
34
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
Alfred Trabulsi
Intelexis.
www.intelexis.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform