PrinterNames - PYTHON 不支持

Returns the name of all installed Windows printer.

语法

Rhino.PrinterNames ()

参数

None.

返回值

Array

An array of Windows printer names if successful.

Null

如果执行不成功或出错,返回空值。

示例

Dim arrPrinters, strPrinter

arrPrinters = Rhino.PrinterNames

If IsArray(arrPrinters) Then

strPrinter = Rhino.CurrentPrinter

strPrinter = Rhino.ListBox(arrPrinters, "Current:" & strPrinter, "Set Current Printer")

If Not IsNull(strPrinter) Then

Rhino.CurrentPrinter strPrinter

End If

End If

同见

CurrentPrinter

SpoolToPrinter