Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

PrinterSettings.InstalledPrinters Property

Gets the names of all printers installed on the computer.

[Visual Basic]
Public Shared ReadOnly Property InstalledPrinters As _
   PrinterSettings.StringCollection
[C#]
public static PrinterSettings.StringCollection InstalledPrinters
   {get;}
[C++]
public: __property static PrinterSettings.StringCollection*
   get_InstalledPrinters();
[JScript]
public static function get InstalledPrinters() :
   PrinterSettings.StringCollection;

Property Value

A PrinterSettings.StringCollection that represents the names of all printers installed on the computer.

Exceptions

Exception Type Condition
Win32Exception The available printers could not be enumerated.

Remarks

You can use the collection of installed printer names to provide the user a choice of printers to print to.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

PrinterSettings Class | PrinterSettings Members | System.Drawing.Printing Namespace | PrinterName

Show:
© 2015 Microsoft