Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the list of all printers in computer

Tags:

c#

.net

winforms

I need to get the list of all printers that connect to computer?

How I can do it in C#, WinForms?

like image 276
Gold Avatar asked Mar 01 '10 07:03

Gold


People also ask

How do I get a list of my printers?

Open a new command prompt. Type the following command: wmic printer list brief . This will show the list of installed printers.

How do I list all printers on a network?

On most modern computers, you can use a tool called netstat to list the devices on your network. On Windows, type "cmd" in the search box on the Start Menu or task bar, then click the icon to load the Windows command prompt. Type "netstat" to list active connections, which may include your printer.

How do I find printers on Windows 10?

For Windows 10, click on Start > Settings > Devices > Printer & scanners. Older operating system will find their printers under Control Panel, Devices and printers.

How do I list all printers in powershell?

The Get-Printer cmdlet retrieves a list of printers installed on a computer. You can also use Get-Printer to retrieve the properties of a single printer, and then use that information as input into other cmdlets.


1 Answers

Try this:

foreach (string printer in System.Drawing.Printing.PrinterSettings.InstalledPrinters) {     MessageBox.Show(printer); } 
like image 130
Jojo Sardez Avatar answered Sep 18 '22 08:09

Jojo Sardez