ListPrinterNames (arcpy)
サマリ
Returns a list of available printer names.
説明
ListPrinterNames is an easy way to identify the names of the printers currently available to the local computer. These string values can then be used as input parameters with the PrintMap() function or the printPages method on the DataDrivenPages object.
![注意 注意](rsrc/note.png)
Driver based printing is not supported on ArcGIS for Server. However, non-driver based printing is supported in web applications. For more information, see Printing in web applications.
構文
ListPrinterNames ()
データ タイプ | 説明 |
String |
Returns a list containing the printer names available to the script. |
コードのサンプル
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)
4/26/2014