vb.netprintingsystem.printingprintqueue

Network printers and the PrintServer.GetPrintQueues method


I have a feeling that the PrintServer.GetPrintQueues method does not return the network printers.

If this one is true, what other choices do i have?


Solution

  • After a lot of Googling the GetPrintQueues method do return the network printers too with aid of EnumeratedPrintQueueTypes()

    Private enumerationFlags As EnumeratedPrintQueueTypes() = {EnumeratedPrintQueueTypes.Local, EnumeratedPrintQueueTypes.Connections}

    More information can be found here