6

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?

OrElse
  • 9,709
  • 39
  • 140
  • 253

2 Answers2

9

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

OrElse
  • 9,709
  • 39
  • 140
  • 253
0

Windows Management Instrumentation.

See here for an example of now to get the network printers using WMI.

Ando
  • 11,199
  • 2
  • 30
  • 46