General information
Category:
Reports & Report designer
Title:
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!
Next
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