Getting Printer Info from CommonDialog hDC
Posted on 1997-12-17
I'm using a CommonDialog control to display a Print Dialog box. I am trying to get the printer name, printer driver and printer port of the selected printer thru this dialog box WITHOUT changing the system default printer. I want to send these values to a Crystal Reports control. The dialog box returns an hDC value, but not the info that I need. I am wondering if there is a way to retrieve the information I need using the hDC value returned by the dialog box. I'm using VB 4.0 (16-bit).
Thanks in advance!