General information
Category:
Windows API functions
Title:
Printer name from hDC printer handle?
I need to find out the name of the printer that was selected by a user when they print a report.
If I use, REPORT FORM ... TO PRINTER PROMPT, I can't capture the user's printer selection (as far as I know).
If I use the CommonDialog ShowPrinter as in:
loComDialog = newobject( "mscomdlg.commondialog" )
loComDialog.flags = pd_returndc
loComDialog.ShowPrinter()
I get the hDC handle to the printer but how do I use that handle to get a printer name? I have a feeling that it might have to do with the API GetPrinter but I'm stumped at this point.
Any help would be appreciated.
Ed
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