Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Obtaining the default printer in VFP6
Message
 
À
23/08/2001 09:28:02
Lloyd Grant
Meridian Legal Systems
Buxton, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00547898
Message ID:
00547902
Vues:
8
>I am in the process of coding up a wrapper for the LABEL FORM and REPORT FORM commands. The wrapper is to take care of issues such as previewing reports, erasing the TAG, TAG2 and EXPR fields etc where needed. It will also prompt users for a printer via the GETPRINTER() command. This is all straightforward stuff, but I have one problem. How do I find the current printer that is in use? To my mind there are 2 definitions of this
>
>1) The current windows default printer
>2) The last printer used by VFP
>
>For the purpose of my wrapper I wish to be able to store both of these pieces of information, change if required and restore after the report has been printed / previewed.
>
>Any ideas? I suspect some API wizardry will be called for, but thats something I am not a master of.
>
>Thanks!

Nope, look at SET("PRINTER", n) in the help file. The n represents a numeric value (2, for example returns the current default printer).
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform