system.print.getPrinterNames
New in 8.1.22
This function is used in Python Scripting.
Descriptionβ
Lists the available local printers.
Client Permission Restrictionsβ
This scripting function has no Client Permission restrictions.
Syntaxβ
system.print.getPrinterNames()
Parametersβ
None
Returnsβ
List - A list of strings that contain the names of local printers. Returns an empty list if there are no available local printers.
Scopeβ
Gateway, Vision Client, Perspective Session
Code Exampleβ
Code Snippet
# This code will return a list of names of the machine's local printers.
system.print.getPrinterNames()