How to get a list of installed printers? RRS feed

  • Question

  • Hello,

    I need to get a list of all printers installed on a system.
    I found this code on MSDN:
    LocalPrintServer printServer = new LocalPrintServer();  
    PrintQueueCollection printQueuesOnLocalServer = printServer.GetPrintQueues();  
    foreach (PrintQueue printer in printQueuesOnLocalServer)  
          Debug.WriteLine("\tThe shared printer : " + printer.Name );  

    But this does NOT show all printers I have installed - the network printers are missing.

    Norbert Ruessmann
    Monday, October 27, 2008 1:58 PM