Search This Blog

Friday, April 11, 2014

Get all printers installed on computer C#

C# > Printing > PrinterSettings > InstalledPrinters

Contains the names of all printers installed on the computer.

Example: Get all printers installed on computer

foreach (string prt in System.Drawing.Printing.PrinterSettings.InstalledPrinters)
{
    MessageBox.Show(prt);

}