|
|||||||||
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
Enum PrinterType |
Method Summary | |
---|---|
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. |
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()
Gets the type of a printer |
void |
setDissociatePageSizeAndPrinterPaperSize(boolean bDissociatePageSizeAndPrinterPaperSize)
Sets a value that indicates whether the report page size is dissociated from printer paper sizes. |
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. |
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()
Gets the type of a printer
IPrintOptions.PrinterType
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.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 otherwise
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |