Class Printer
This class prints the selected design sheets to a file.
Hierarchical Diagram
Direct Known Subclasses
None
Constructor
Creates a printer object of the specified type.
public Printer(PrinterType type, boolean toFile)
When toFile is true, the design is printed to a file.
When toFile is true, the design is printed to a file. When toFile is omitted, the value for set to true for HPGL and Postscript and false for WIN and Preview.
PrinterType options are only:
HPGL
Postscript
WIN
Preview
Methods
setSheets
Sets the sheets to print.
public void setSheets (vector <Sheet> sheets
sheets—A vector of the sheets to print.
Throws: RSDException
setSheetsSelectionMode
Sets the method for selecting sheets to print
public void setSheetSelectionMode (sheetSelection mode)
The default is CURRENT.
currentView
Prints only the current view.
public void currentView (boolean currentView)
When the value is false (default), the full sheet is printed.
blackWhiteOnly
Prints the sheet in black and white.
public void blackWhiteOnly (boolean bw)
The default is false, the sheet is printed in color.
invertWhite
Inverts black and white colors when printing the sheets.
public void invertWhite (boolean invert)
The default is false.
autoScale
Automatically scales the printed sheet to fit the page.
public void autoScale (boolean scale)
The default is false.
title
Prints a string in the design title.
public void title (string title)
Where:
title—Sting to print in the title.
includeHiddenLayers
Prints design items on hidden layers.
public void includeHiddenLayers (boolean include)
The default is false.
print
Prints the design with this Printer’s properties. Updates the design sheets before printing when UpdateSheets is set to true.
public void print (boolean UpdateSheets)
Throws: RSDException
setFileName
Sets the path to the HPGL or postscript file.
public void setFileName (string name)
The default is false.
autoRotate
Automatically rotate the sheet to fit the printed page when enable Rotate is set to true.
public void autoRotate (boolean enableAutoRotate)
Rotate
Rotates the sheet.
public void Rotate (boolean enableRotate)
margins
Sets margin size for printing.
public voide margins(Double X1, Double Y1, Double X2, Double Y2)
* 
When this method is called without parameters, it clears all margin settings.