Information générale
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Obtaining the default printer in VFP6
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!
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement