IRONSOFTWAREHOME
Get Printer Names
using IronPrint;
using System;
using System.Collections.Generic;

// Retrieve printers' name
List<string> printersName = Printer.GetPrinterNames();

foreach (var printer in printersName)
{
    Console.WriteLine(printer);
}
Imports IronPrint
Imports System
Imports System.Collections.Generic

' Retrieve printers' name
Dim printersName As List(Of String) = Printer.GetPrinterNames()

For Each printer In printersName
    Console.WriteLine(printer)
Next
NuGet Download
PM > Install-Package IronPrint
Get Printer Names

Get Printer Names

Use the GetPrinterNames method to retrieve all available printers connected to the machine. The method will return a list of printer names in string data type.

This code snippet provides a simple and effective way to list all printers connected to your machine, which can be quite useful for debugging or managing printer configurations in larger applications.

Explore Advanced Printer Settings Guide
View on GitHub

Ready to Get Started?

Nuget Downloads 46,090Version:2026.9just released

Key in blue circle

Get your free 30-day Trial Key instantly.

Your trial license will be sent to your email address

No limitations. 100% unlocked. No credit card.

bullet_checkedNo credit card or account creation requiredNo limitations. 100% unlocked. No credit card.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
Book your free Live Demo
Booking Badge

Trusted by Millions of Engineers Worldwide

Iron Software's customer logos
Get Your No-Obligation Consult
Complete the form below or email sales@ironsoftware.com
Your details will always be kept confidential.
Trusted by Millions of Engineers Worldwide
Iron Software's customer logos
Get your free 30-day Trial Key instantly.
No credit card or account creation required