User's guide > Interface > Printing Files > Printer Options
Printer Options
The printer settings for printing a file are defined in the pfcExport.PrintPrinterOption object.
Methods Introduced:
The method pfcExport.pfcExport.PrintPrinterOption_Create creates a new instance of the pfcExport.PrintPrinterOption object.
The method pfcSession.BaseSession.GetPrintPrinterOptions retrieves the printer settings.
The pfcExport.PrintPrinterOption object contains the following options:
DeleteAfter—Determines if the file is deleted after printing. Set it to true to delete the file after printing. Use the method pfcExport.PrintPrinterOption.SetDeleteAfter to assign this option.
FileName—Specifies the name of the file to be printed. Use the method pfcExport.PrintPrinterOption.SetFileName to set the name.
* 
If the method pfcModel.Model.Export is called for pfcModel.ExportType object, then the argument FileName is ignored, and can be passed as NULL. You must use the method pfcModel.Model.Export to set the FileName.
PaperSize—Specifies the parameters of the paper to be printed in terms of the pfcExport.PrintSize object. The method pfcExport.PrintPrinterOption.SetPaperSize assigns the PaperSize option. Use the method pfcExport.Export.PrintSize_Create to create a new instance of the pfcExport.PrintSize object. This object contains the following options:
Height—Specifies the height of paper. Use the method pfcExport.PrintSize.SetHeight to set the paper height.
Width—Specifies the width of paper. Use the method pfcExport.PrintSize.SetWidth to set the paper width.
PaperSize—Specifies the size of the paper used for the plot in terms of the pfcModel.PlotPaperSize object. Use the method pfcExport.PrintSize.SetPaperSize to set the paper size.
* 
If you want to plot a layout without adding a border on the paper, use the following paper sizes defined in the enumerated data type pfcModel.PlotPaperSize:
CEEMPTYPLOT—The paper size is 22.5 x 36 in
CEEMPTYPLOT_MM—The paper size is 625 x 1000 mm
PenTable—Specifies the file containing the pen table. Use the method pfcExport.PrintPrinterOption.SetPenTable to set this option.
PrintCommand—Specifies the command to be used for printing. Use the method pfcExport.PrintPrinterOption.SetPrintCommand to set the command.
PrinterType—Specifies the printer type. Use the method pfcExport.PrintPrinterOption.SetPrinterType to assign the type.
Quantity—Specifies the number of copies to be printed. Use the pfcExport.PrintPrinterOption.SetQuantity to assign the quantity.
RollMedia—Determines if roll media is to be used for printing. Set it to true to use roll media. Use the method pfcExport.PrintPrinterOption.SetRollMedia to assign this option.
RotatePlot—Determines if the plot is rotated by 90 degrees. Set it to true to rotate the plot. Use the method pfcExport.PrintPrinterOption.SetRotatePlot to set this option.
SaveMethod—Specifies the save method in terms of the pfcExport.PrintSaveMethod class. Use the method pfcExport.PrintPrinterOption.SetSaveMethod to specify the save method. The available methods are as follows:
PRINT_SAVE_SINGLE_FILE—Plot is saved to a single file.
PRINT_SAVE_MULTIPLE_FILE—Plot is saved to multiple files.
PRINT_SAVE_APPEND_TO_FILE—Plot is appended to a file.
SaveToFile—Determines if the file is saved after printing. Set it to true to save the file after printing. Use the method pfcExport.PrintPrinterOption.SetSaveToFile to assign this option.
SendToPrinter—Determines if the plot is directly sent to the printer. Set it to true to send the plot to the printer. Use the method pfcExport.PrintPrinterOption.SetSendToPrinter to set this option.
Slew—Specifies the speed of the pen in centimeters per second in X and Y direction. Use the method pfcExport.PrintPrinterOption.SetSlew to set this option.
SwHandshake—Determines if the software handshake method is to be used for printing. Set it to true to use the software handshake method. Use the method pfcExport.PrintPrinterOption.SetSwHandshake to set this option.
UseTtf—Specifies whether TrueType fonts or stroked text is used for printing. Set this option to true to use TrueType fonts and to false to stroke all text. Use the method pfcExport.PrintPrinterOption.SetUseTtf to set this option.
Was this helpful?