Is there a straightforward way to enumerate all visible network printers in .NET? Currently, I\'m showing the PrintDialog to allow the user to select a printer. The problem
using the new System.Printing API
using (var printServer = new PrintServer(string.Format(@"\\{0}", PrinterServerName))) { foreach (var queue in printServer.GetPrintQueues()) { if (!queue.IsShared) { continue; } Debug.WriteLine(queue.Name); } }