Reader Level:

Get All Installed Printers in C#

By Ibrahim Ersoy on Jul 09, 2012
Assuming you need to retrieve all installed printers,you can do it by using PrinterSettings class

This class locates in System.Drawing.Printing namespace 

so you need to add reference System.Drawing and then import it with using statement:

using System.Drawing.Printing;

To get all the printers available,you need to iterate the string values through PrinterSettings


For example:

Add a ListBox to your windows application and then use foreach statement for iteration:

foreach (string printname in PrinterSettings.InstalledPrinters)

This will show you all the available Printers installed on your computer as seen below:


Because i've not installed any physical printers on my computer it shows the printer services.

Ibrahim Ersoy
Ibrahim Ersoy

Ibrahim Ersoy lives in Turkey, Istanbul. He helps running and managing C# Corner. He is a Software Consultant in Sharepoint field,completed over 18 Intranet,Extranet,Internet wide SharePoint portal projects.He is also 2 ... Read more

Personal Blog: