SpoolToPrinter

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

Syntax

Rhino.SpoolToPrinter (strFile, strPrinter)

Parameters

strFile

Required.  String.  The full path to the file to spool

strPrinter

Required.  String.  The name of a Windows printer as returned by either the CurrentPrinter or by the PrinterNames method.

Returns

String

The name of the spooled file if successful.

Null

If not successful, or on error.

Example

Dim strFilename

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

If Not IsNull(strFilename) Then

Rhino.SpoolToPrinter strFilename, Rhino.CurrentPrinter

End If

Also See

CurrentPrinter

PrinterNames