ListPrinterNames

Resumen

Returns a list of available printers on the local computer.

Sintaxis

ListPrinterNames ()
Valor de retorno
Tipo de datosExplicación
String

Returns a list containing the printer names available to the script.

Muestra de código

ListPrinterNames example

Returns a list of printer names available to session.

import arcpy

# Print available printers
printers = arcpy.ListPrinterNames()
for printer in printers:
    print(printer)