|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IPrintOptions
This interface allows you to get and set the print options for a report. This information includes: content height, content width, driver name, page margins, paper orientation, paper size, paper source, port name, printer duplex, and printer name.
| Nested Class Summary | |
|---|---|
static class |
IPrintOptions.PrinterType
For internal use only. |
static class |
IPrintOptions.ScaleOptionType
For internal use only. |
| Method Summary | |
|---|---|
boolean |
getCenter()
For internal use only |
int |
getContentHeight()
Gets the report content height. |
int |
getContentWidth()
Gets the report content width. |
boolean |
getDissociatePageSizeAndPrinterPaperSize()
Gets a value that indicates whether the report page size is dissociated from printer paper sizes. |
java.lang.String |
getDriverName()
Gets the driver name. |
boolean |
getFitHorizontalPages()
For internal use only |
IPageMargins |
getPageMargins()
Gets the page margins. |
PaperOrientation |
getPaperOrientation()
Gets the paper orientation. |
PaperSize |
getPaperSize()
Gets the paper size. |
PaperSource |
getPaperSource()
Gets the paper source. |
java.lang.String |
getPortName()
Gets the port name. |
PrinterDuplex |
getPrinterDuplex()
Gets the printer duplex. |
java.lang.String |
getPrinterName()
Gets the printer name. |
IPrintOptions.PrinterType |
getPrinterType()
For internal use only |
IPrintOptions.ScaleOptionType |
getScaleOption()
For internal use only |
void |
setCenter(boolean bCenter)
For internal use only |
void |
setDissociatePageSizeAndPrinterPaperSize(boolean bDissociatePageSizeAndPrinterPaperSize)
Sets a value that indicates whether the report page size is dissociated from printer paper sizes. |
void |
setFitHorizontalPages(boolean bFitHorizontalPages)
For internal use only |
void |
setPageMargins(IPageMargins pageMargins)
Sets the page margins. |
void |
setPaperOrientation(PaperOrientation orientation)
Sets the paper orientation. |
void |
setPaperSize(PaperSize size)
Sets the paper size. |
void |
setPaperSource(PaperSource source)
Sets the paper source. |
void |
setPrinterDuplex(PrinterDuplex duplex)
Sets the printer duplex. |
void |
setPrinterName(java.lang.String printerName)
Sets the printer name. |
void |
setScaleOption(IPrintOptions.ScaleOptionType scaleOption)
For internal use only |
| Method Detail |
|---|
java.lang.String getDriverName()
Gets the driver name.
java.lang.String getPortName()
Gets the port name.
java.lang.String getPrinterName()
Gets the printer name.
IPageMargins getPageMargins()
Gets the page margins.
IPageMargins objectint getContentWidth()
Gets the report content width.
int getContentHeight()
Gets the report content height.
PaperOrientation getPaperOrientation()
Gets the paper orientation.
PaperOrientation objectPaperSize getPaperSize()
Gets the paper size.
PaperSize objectPaperSource getPaperSource()
Gets the paper source.
PaperSource objectPrinterDuplex getPrinterDuplex()
Gets the printer duplex.
PrinterDuplex objectIPrintOptions.PrinterType getPrinterType()
boolean getDissociatePageSizeAndPrinterPaperSize()
Gets a value that indicates whether the report page size is dissociated from printer paper sizes.
True if report page size is dissociated from printer paper sizes, and false otherwise.boolean getFitHorizontalPages()
boolean getCenter()
IPrintOptions.ScaleOptionType getScaleOption()
void setPrinterName(java.lang.String printerName)
Sets the printer name.
printerName - the name of the printer to be setvoid setPageMargins(IPageMargins pageMargins)
Sets the page margins.
Note: As of the Report Application Server 12 SDK, the
PrintOutputController.modifyPageMargins
method must be used to set all page margins to the default value 0. Attempts to set all page margins to 0 using the
PrintOutputController.modifyPrintOptions method are ignored.
pageMargins - the IPageMargins object whose properties will be setvoid setPaperOrientation(PaperOrientation orientation)
Sets the paper orientation.
orientation - the PaperOrientation object whose properties will be setvoid setPaperSize(PaperSize size)
Sets the paper size.
size - the PaperSize object whose properties will be setvoid setPaperSource(PaperSource source)
Sets the paper source.
source - the PaperSource object whose properties will be setvoid setPrinterDuplex(PrinterDuplex duplex)
Sets the printer duplex.
duplex - the PrinterDuplex object whose properties will be setvoid setDissociatePageSizeAndPrinterPaperSize(boolean bDissociatePageSizeAndPrinterPaperSize)
Sets a value that indicates whether the report page size is dissociated from printer paper sizes. Setting this property to true allows you to control the height and width of the report independent of the paper size specified. This can be useful when the report is viewed electronically, such as on a Web Site. Note: Set to true if using custom page sizes for web-based pagination.
bDissociatePageSizeAndPrinterPaperSize - true to dissociate, false otherwisevoid setFitHorizontalPages(boolean bFitHorizontalPages)
void setCenter(boolean bCenter)
void setScaleOption(IPrintOptions.ScaleOptionType scaleOption)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||