Information générale
Catégorie:
Fonctions Windows API
Titre:
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
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