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