Network Printer Selection

I'm working on an application that needs for the user to choose where reports get printed.

For example, some reports need to print in the Payroll Department, some in the Accounts Payable Department, some in the Accounts Receivable Department, ....

I'm creating a form that has the different "Printer Locations" listed with a text box for the UNC of the printer to be entered. I would like to have a browse button that will allow the user to browse to the printer. Some of the printers may be installed on the local machine, but they may not be installed on the local machine. Also, these settings will be used by all users, so using the UNC would be the best method of identifying the desired printer.

I can't get the FolderBrowserDialog to list the network printers, and I can't figure out how to get the PrintDialog to return back the UNC. Can someone point me in the right direction

Thanks!




Answer this question

Network Printer Selection

  • Tryst

    bump....

  • Tadwick

    I read somewhere that printer enumeration was dropped from the framework just prior to shipping. They probably had problems making it reliable. That leaves you with the unpleasant task of P/Invoking the Windows API functions. Start looking at (and googling for) the EnumPrinters() function...


  • Network Printer Selection