How to Get Printers Listing in C#

Import System.Drawing.Printing namespace in your application.

Add a DropDownList and change its name to printersList and write this below code on Form's load event handler.

private void Form1_Load (object sender, System.EventArgs e)

{

foreach (String printer in PrinterSettings.InstalledPrinters)

{

printersList.Items.Add (printer.ToString());

}

}

The DropDownList will show all printers available on your network.


Similar Articles
Mindcracker
Founded in 2003, Mindcracker is the authority in custom software development and innovation. We put best practices into action. We deliver solutions based on consumer and industry analysis.