ListPrinterNames

Diese ArcGIS 3.1-Dokumentation wurde archiviert und wird nicht mehr aktualisiert. Inhalt und Links sind möglicherweise veraltet. Verwenden Sie die aktuelle Dokumentation.

Zusammenfassung

Returns a list of available printers on the local computer.

Syntax

ListPrinterNames ()
Rückgabewert
DatentypErläuterung
String

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

Codebeispiel

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)