Results 1 to 2 of 2

Thread: Selected Printer

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 1999
    Redmond, WA, USA
    I need to issue a "Set Printer = X" command where X is that printer selected via the Print Dialog box. Currently, output goes to the system default printer regardless of user selection.

    What property value should be evaluated to determine which printer has been selected through the Print Dialog box?

    Based on VB Help info, CommonDialog1.hDC appears to be that property. But how do I use that information

    What do the common dialog flag values of cdlPDReturnDC or cdlPDReturnIC do for me?

    Once I have some means of identifying the desired printer, I can match it with the appropriate member of the Printers collection and make the setting.

  2. #2
    New Member
    Join Date
    Nov 2000

    Setting printer

    Here is a class module that does exactly what you are seeking to do. It is an excellent piece of code. I struggled with the device context and commondialog handle with no success either...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width