SpoolToPrinter - PYTHON 不支持

Spools, or sends, a text file or a print/plot file to a Windows printer.

语法

Rhino.SpoolToPrinter (strFile, strPrinter)

参数

strFile

Required.字符串。The full path to the file to spool

strPrinter

Required.字符串。The name of a Windows printer as returned by either the CurrentPrinter or by the PrinterNames method.

返回值

String

The name of the spooled file if successful.

Null

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

示例

Dim strFilename

strFilename = Rhino.OpenFileName("File to Spool", "RhinoScript Files (*.rvb)|*.rvb||")

If Not IsNull(strFilename) Then

Rhino.SpoolToPrinter strFilename, Rhino.CurrentPrinter

End If

同见

CurrentPrinter

PrinterNames