Printer Options
The printer settings for printing a file are defined in the IpfcPrintPrinterOption object.
Methods and Properties Introduced:
• CCpfcPrintPrinterOption.Create()
• CCpfcPrintSize.Create()
The method CCpfcPrintPrinterOption.Create() creates a new instance of the IpfcPrintPrinterOption object.
The method
IpfcBaseSession.GetPrintPrinterOptions() retrieves the printer settings.
The IpfcPrintPrinterOption 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 property
IpfcPrintPrinterOption.DeleteAfter to assign this option.
|
|
If the method IpfcModel.Export() is called for IpfcExportType object, then the argument FileName is ignored, and can be passed as NULL. You must use the method IpfcModel.Export() to set the FileName.
|
• PaperSize—Specifies the parameters of the paper to be printed in terms of the
IpfcPrintSize object. The property
IpfcPrintPrinterOption.PaperSize assigns the
PaperSize option. Use the method
CCpfcPrintSize.Create() to create a new instance of the
IpfcPrintSize object. This object contains the following options:
◦ Height—Specifies the height of paper. Use the property
IpfcPrintSize.Height to set the paper height.
◦ Width—Specifies the width of paper. Use the property
IpfcPrintSize.Width to set the paper width.
◦ PaperSize—Specifies the size of the paper used for the plot in terms of the
EpfcPlotPaperSize object. Use the property
IpfcPrintSize.PaperSize 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 EpfcPlotPaperSize:
• EpfcCEEMPTYPLOT—The paper size is 22.5 x 36 in
• EpfcCEEMPTYPLOT_MM—The paper size is 625 x 1000 mm
|
• RollMedia—Determines if roll media is to be used for printing. Set it to true to use roll media. Use the property
IpfcPrintPrinterOption.RollMedia to assign this option.
• RotatePlot—Determines if the plot is rotated by 90 degrees. Set it to true to rotate the plot. Use the property IpfcPrintPrinterOption.SetRotatePlot to set this option.
• SaveMethod—Specifies the save method in terms of the
EpfcPrintSaveMethod enumerated class. Use the property
IpfcPrintPrinterOption.SaveMethod to specify the save method. The available methods are as follows:
◦ EpfcPRINT_SAVE_SINGLE_FILE—Plot is saved to a single file.
◦ EpfcPRINT_SAVE_MULTIPLE_FILE—Plot is saved to multiple files.
◦ EpfcPRINT_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 property
IpfcPrintPrinterOption.SaveToFile 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 property
IpfcPrintPrinterOption.SendToPrinter to set this option.
• Slew—Specifies the speed of the pen in centimeters per second in X and Y direction. Use the property
IpfcPrintPrinterOption.Slew 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 property
IpfcPrintPrinterOption.SwHandshake 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 property
IpfcPrintPrinterOption.UseTtf to set this option.