ListPrinterNames

Synthèse

Returns a list of available printers on the local computer.

Syntaxe

ListPrinterNames ()
Valeur renvoyée
Type de donnéesExplication
String

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

Exemple de code

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)

Dans cette rubrique