Obtener Nombres de Impresoras
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
Obtener Nombres de Impresoras

Obtener Nombres de Impresoras

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.

Este fragmento de código proporciona una forma simple y efectiva de listar todas las impresoras conectadas a su máquina, lo cual puede ser bastante útil para depurar o gestionar configuraciones de impresoras en aplicaciones más grandes.

Explorar la Guía de configuración avanzada de la impresora
Ver en GitHub

¿Listo para empezar?

Nuget Downloads 46,787Versión:2026.10recién lanzado