Get the list of all printers from the local computer?

How can I get the list of all printers from the local computer?I use System.Drawing.Printing.PrinterSettings.InstalledPrintersbut this property only return the local printers and I want as well thenetwork printers added on the local computer.

Share:

5 Answers Found

It's normal that all code that you execute in your code behind, won't do thejob, because it executes on the server and you only get server's printers. But Iam very sceptic about getting printer names with JavaScript... Maybe I'm wrong.

So,how can I get the list of all printers from the server?I use System.Drawing.Printing.PrinterSettings.InstalledPrintersbut this property only return the local printers and I want as well thenetwork printers added on the server computer.

If I call this propertyfrom a windows applications it returns the entire printer list (networkprinters as well).So, how can I get the list of all the printers?