Created
April 25, 2018 07:34
-
-
Save devmnj/6c3126b0b2cd874cd78a5d92de7788a9 to your computer and use it in GitHub Desktop.
List all Printers installed on a system in C#.Net Windows Application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PrinterSettings setting = new PrinterSettings(); | |
listBox1.Items.Clear(); | |
foreach (string prntr in PrinterSettings.InstalledPrinters) | |
{ | |
System.Console.WriteLine(prntr); | |
listBox1.Items.Add(prntr); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment