|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjet.bean.JREngine
public class JREngine
| Field Summary | |
|---|---|
static int |
BIG5
Indicates converter encoding. |
static int |
DHTMLFILEMAIL
Indicates the DHTML file mail format when exported to mail. |
static int |
EXPORTSHAPE
Indicates export geometry object to excel file. |
static int |
GB
Indicates converter encoding. |
static int |
HIDDEN
Indicates the html text overflow type is HIDDEN. |
static int |
HTMLFILEMAIL
Indicates the HTML file mail format when exported to mail. |
static int |
HTMLMAIL
Indicates the HTML mail format when exported to mail. |
static int |
IE
Indicates the html browser is IE. |
static int |
KEEPORIGIN
Indicates keep wardwrap. |
static int |
LANDSCAPE
The origin is at the bottom left of the paper with x running bottom to top and y running left to right. |
static int |
NETSCAPE
Indicates the html browser is NETSCAPE. |
static int |
NLSSTATUS_AUTO
Indicates JReport to apply NLS setting according to report template setting. |
static int |
NLSSTATUS_DISABLE
Indicates JReport do not to apply NLS setting. |
static int |
NLSSTATUS_ENABLE
Indicates JReport to apply NLS setting. |
static int |
NOEXPORTSHAPE
Indicates export geometry object to excel file. |
static int |
NOWORDWRAP
Indicates no wardwrap. |
static java.lang.String |
PARAM_ALL_VALUE
The flag indicates that parameter's value is ALL. |
static int |
PDFFILEMAIL
Indicates the PDF file mail format when exported to mail. |
static int |
PLAINTXTMAIL
Indicates the Plain Text mail format when exported to mail. |
static int |
PORTRAIT
The origin is at the top left of the paper with x running to the right and y running down the paper. |
static int |
PSFILEMAIL
Indicates the PostScript file mail format when exported to mail. |
static int |
RPT_STATUS_ALL
Indicates the status of report panel in reportset. |
static int |
RPT_STATUS_CURRENT
Indicates the status of report panel in reportset. |
static int |
RPT_STATUS_OPEN
Indicates the status of report panel in reportset. |
static int |
RSTFILEMAIL
Indicates the RST file mail format when exported to mail. |
static int |
RTFFILEMAIL
Indicates the RTF mail format when exported to mail. |
static int |
SDFTEXTMAIL
Indicates the SDF Text mail format when exported to mail. |
static int |
vDebug
Indicates to open the debug. |
static int |
vError
Indicates to open the error. |
static int |
VISIBLE
Indicates the html text overflow type is VISIBLE. |
static int |
vOff
Indicates to close the debug. |
static int |
WORDWRAPALL
Indicates all wardwrap. |
static int |
XLSFILEMAIL
Indicates the Excel mail format when exported to mail. |
static int |
XMLFILEMAIL
Indicates the XML mail format when exported to mail. |
| Constructor Summary | |
|---|---|
JREngine()
Default constructor. |
|
JREngine(boolean setDebugLevel)
Deprecated. |
|
JREngine(java.lang.String uid,
java.lang.String key)
Default constructor. |
|
JREngine(java.lang.String uid,
java.lang.String key,
boolean setDebugLevel)
Deprecated. |
|
| Method Summary | |
|---|---|
boolean |
addFileQuery(java.lang.String strName,
java.io.File flPath)
Add the specified file query to the current catalog. |
boolean |
addFileQuery(java.lang.String strName,
java.io.File flPath,
java.lang.String sourceName)
Add the specified file query to the current catalog. |
void |
closeLog()
close the log stream. |
void |
configMailServer(java.lang.String SMTPServerIP,
java.lang.String MyMailAddress,
int SMTPServerPort)
Configures the mail server. |
boolean |
deleteWherePortion(java.lang.String strName)
Removes the specified where portion and save the catalog. |
boolean |
deleteWherePortion(java.lang.String strName,
java.lang.String sourceName)
Removes the specified where portion and save the catalog. |
void |
exit()
When you want to quit from JReport Engine Bean, you should call this method. |
void |
exit(int timeout)
When you want to quit from JReport Engine Bean, you should call this method. |
boolean |
exportToDhtml(java.lang.String htmlFileName)
Exports the current report to HTML. |
boolean |
exportToDhtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser)
Exports the current report to HTML. |
boolean |
exportToDhtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile)
Exports the current report to HTML. |
boolean |
exportToDhtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin)
Exports the current report to HTML. |
boolean |
exportToDhtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin,
int resolution)
Exports the current report to HTML. |
boolean |
exportToDhtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin,
java.lang.String title)
Exports the current report to HTML. |
boolean |
exportToDhtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin,
java.lang.String title,
int resolution,
int overflowType)
Exports the current report to HTML. |
boolean |
exportToDhtml(java.lang.String rstFileName,
java.lang.String htmlFileName)
Exports result report file(with the .rst extension)to a HTML file. |
boolean |
exportToDhtml(java.lang.String rstFileName,
java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser)
Exports result report file(with the .rst extension)to a HTML file. |
boolean |
exportToDhtml(java.lang.String rstFileName,
java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile)
Exports result report file(with the .rst extension)to a HTML file. |
boolean |
exportToDhtml(java.lang.String rstFileName,
java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin)
Exports result report file(with the .rst extension)to a HTML file. |
boolean |
exportToDhtml(java.lang.String rstFileName,
java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin,
int resolution)
Exports result report file(with the .rst extension)to a HTML file. |
boolean |
exportToDhtml(java.lang.String rstFileName,
java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin,
java.lang.String title)
Exports result report file(with the .rst extension)to a HTML file. |
boolean |
exportToDhtml(java.lang.String rstFileName,
java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin,
java.lang.String title,
int resolution,
int overflowType)
Exports result report file(with the .rst extension)to a HTML file. |
boolean |
exportToFax(ExportInfo info,
java.lang.String portStr,
java.lang.String initStr,
int iDialing,
int iFlowControl,
java.lang.String flowCommand,
int iClass,
int txtTimeOut,
int txtRetries,
boolean q_best,
boolean q_normal,
boolean q_fast,
boolean isAddCover,
java.lang.String faxnum,
java.lang.String from,
java.lang.String to,
java.lang.String company,
java.lang.String phone,
java.lang.String date,
java.lang.String re,
java.lang.String comments,
boolean urgent,
boolean review,
boolean comment,
boolean reply)
Exports the current report to fax. |
boolean |
exportToFax(java.lang.String portStr,
java.lang.String initStr,
int iDialing,
int iFlowControl,
java.lang.String flowCommand,
int iClass,
int txtTimeOut,
int txtRetries,
boolean q_best,
boolean q_normal,
boolean q_fast,
boolean isAddCover,
java.lang.String faxnum,
java.lang.String from,
java.lang.String to,
java.lang.String company,
java.lang.String phone,
java.lang.String date,
java.lang.String re,
java.lang.String comments,
boolean urgent,
boolean review,
boolean comment,
boolean reply)
Exports the current report to fax. |
boolean |
exportToFax(java.lang.String portStr,
java.lang.String initStr,
int iDialing,
int iFlowControl,
java.lang.String flowCommand,
int iClass,
int txtTimeOut,
int txtRetries,
boolean q_best,
boolean q_normal,
boolean q_fast,
java.lang.String faxnum)
Exports the current report to fax. |
boolean |
exportToFaxServer(ExportInfo info,
java.lang.String className,
JRFaxServerInfo faxinfo,
JRCoverInfo coverinfo)
Exports the report to faxserver. |
boolean |
exportToHtml(ExportInfo info,
HtmlParameter param)
Exports the report to HTML file. |
boolean |
exportToHtml(java.lang.String htmlFileName)
Exports the current report to HTML. |
boolean |
exportToHtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser)
Exports the current report to HTML. |
boolean |
exportToHtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile)
Exports the current report to HTML. |
boolean |
exportToHtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin)
Exports the current report to HTML. |
boolean |
exportToHtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin,
int resolution)
Exports the current report to HTML. |
boolean |
exportToHtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin,
java.lang.String title)
Exports the current report to HTML. |
boolean |
exportToHtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin,
java.lang.String title,
int resolution,
int overflowType)
Exports the current report to HTML. |
boolean |
exportToHtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin,
java.lang.String title,
int resolution,
int overflowType,
int chartFormat)
|
boolean |
exportToHtml(java.lang.String rstFileName,
java.lang.String htmlFileName)
Exports result report file(with the .rst extension)to a HTML file. |
boolean |
exportToHtml(java.lang.String rstFileName,
java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser)
Exports result report file(with the .rst extension)to a HTML file. |
boolean |
exportToHtml(java.lang.String rstFileName,
java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile)
Exports result report file(with the .rst extension)to a HTML file. |
boolean |
exportToHtml(java.lang.String rstFileName,
java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin)
Exports result report file(with the .rst extension)to a HTML file. |
boolean |
exportToHtml(java.lang.String rstFileName,
java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin,
int resolution)
Exports result report file(with the .rst extension)to a HTML file. |
boolean |
exportToHtml(java.lang.String rstFileName,
java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin,
java.lang.String title)
Exports result report file(with the .rst extension)to a HTML file. |
boolean |
exportToHtml(java.lang.String rstFileName,
java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin,
java.lang.String title,
int resolution,
int overflowType)
Exports result report file(with the .rst extension)to a HTML file. |
boolean |
exportToHtml(java.lang.String rstFileName,
java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin,
java.lang.String title,
int resolution,
int overflowType,
int chartFormat)
|
void |
exportToMail(ExportInfo exportInfo,
MailInformation info)
|
void |
exportToMail(MailInformation info)
|
void |
exportToMail(java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
boolean isDataOnly,
java.lang.String xsdFile)
Exports the current report to mail. |
void |
exportToMail(java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat)
Exports the current report to mail. |
void |
exportToMail(java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin)
Exports the current report to mail. |
void |
exportToMail(java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight)
Exports the current report to mail. |
void |
exportToMail(java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight,
boolean isSimPrintMode)
Exports the current report to mail. |
void |
exportToMail(java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight,
boolean isSimPrintMode,
int isCompressImage)
Exports the current report to mail. |
void |
exportToMail(java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight,
boolean isSimPrintMode,
int isCompressImage,
boolean isMutibleFileXML,
boolean isDataOnlyXML,
boolean hasHeadFoot)
|
void |
exportToMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
boolean isDataOnly,
java.lang.String xsdFile)
|
void |
exportToMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat)
|
void |
exportToMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin)
|
void |
exportToMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight)
|
void |
exportToMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight,
boolean isSimPrintMode)
|
void |
exportToMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight,
boolean isSimPrintMode,
int isCompressImage)
|
void |
exportToMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight,
boolean isSimPrintMode,
int isCompressImage,
boolean isDataOnlyXML,
java.lang.String xsdFile,
boolean hasHeadFoot)
|
void |
exportToMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight,
boolean isSimPrintMode,
int isCompressImage,
boolean isDataOnlyXML,
java.lang.String xsdFile,
boolean hasHeadFoot,
boolean isGifTrans)
|
void |
exportToMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight,
boolean isSimPrintMode,
int isCompressImage,
boolean isDataOnlyXML,
java.lang.String xsdFile,
boolean hasHeadFoot,
boolean isGifTrans,
boolean bTxtCompress)
|
void |
exportToMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight,
boolean isSimPrintMode,
int isCompressImage,
boolean isDataOnlyXML,
java.lang.String xsdFile,
boolean hasHeadFoot,
boolean isGifTrans,
boolean bTxtCompress,
boolean isTable)
|
void |
exportToMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight,
boolean isSimPrintMode,
int isCompressImage,
boolean isDataOnlyXML,
java.lang.String xsdFile,
boolean hasHeadFoot,
boolean isGifTrans,
boolean bTxtCompress,
boolean isTable,
int isWordWrap)
|
void |
exportToMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight,
boolean isSimPrintMode,
int isCompressImage,
boolean isDataOnlyXML,
java.lang.String xsdFile,
boolean hasHeadFoot,
boolean isGifTrans,
boolean bTxtCompress,
boolean isTable,
int isWordWrap,
boolean isBiff8)
|
void |
exportToMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight,
boolean isSimPrintMode,
int isCompressImage,
boolean isDataOnlyXML,
java.lang.String xsdFile,
boolean hasHeadFoot,
boolean isGifTrans,
boolean bTxtCompress,
boolean isTable,
int isWordWrap,
boolean isBiff8,
boolean bToc,
boolean bDrill,
java.lang.String encoding)
|
void |
exportToMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight,
boolean isSimPrintMode,
int isCompressImage,
boolean isDataOnlyXML,
java.lang.String xsdFile,
boolean hasHeadFoot,
boolean isGifTrans,
boolean bTxtCompress,
boolean isTable,
int isWordWrap,
boolean isBiff8,
int param)
|
void |
exportToMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight,
boolean isSimPrintMode,
int isCompressImage,
boolean isDataOnlyXML,
java.lang.String xsdFile,
boolean hasHeadFoot,
boolean isGifTrans,
boolean bTxtCompress,
boolean isTable,
int isWordWrap,
boolean isBiff8,
int param,
boolean bToc,
boolean bDrill)
Exports the current report to mail. |
void |
exportToMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight,
boolean isSimPrintMode,
int isCompressImage,
boolean isDataOnlyXML,
java.lang.String xsdFile,
boolean hasHeadFoot,
boolean isGifTrans,
boolean bTxtCompress,
boolean isTable,
int isWordWrap,
boolean isBiff8,
int param,
boolean bToc,
boolean bDrill,
java.lang.String encoding)
|
java.awt.print.Pageable |
ExportToPageable()
set default resolution as 72 into Communicator for printer and return it. |
boolean |
exportToPDF(ExportInfo info,
PDFParameter param)
Exports the report to PDF file. |
boolean |
exportToPdf(java.io.OutputStream stream)
Exports the current report to a PDF OutputStream. |
boolean |
exportToPdf(java.io.OutputStream stream,
boolean noMargin,
int isCompressImage,
boolean isTransparent,
boolean bToc,
java.lang.String password,
int[] pages,
int[][] pageRange)
Exports the current report to a PDF OutputStream. |
boolean |
exportToPdf(java.lang.String pdfFileName)
Exports the current report to a PDF file. |
boolean |
exportToPdf(java.lang.String pdfFileName,
boolean noMargin)
Exports the current report to a PDF file. |
boolean |
exportToPdf(java.lang.String pdfFileName,
boolean noMargin,
boolean isSimPrintMode)
Exports the current report to a PDF file. |
boolean |
exportToPdf(java.lang.String pdfFileName,
boolean noMargin,
boolean isSimPrintMode,
boolean isCompressImage)
Exports the current report to a PDF file. |
boolean |
exportToPdf(java.lang.String pdfFileName,
boolean noMargin,
boolean isSimPrintMode,
int isCompressImage,
boolean isTransparent)
Exports the current report to a PDF file. |
boolean |
exportToPdf(java.lang.String pdfFileName,
boolean noMargin,
boolean isSimPrintMode,
int isCompressImage,
boolean isTransparent,
boolean bToc,
boolean bDrill)
Exports the current report to a PDF file. |
boolean |
exportToPdf(java.lang.String pdfFileName,
boolean noMargin,
boolean isSimPrintMode,
int isCompressImage,
boolean isTransparent,
boolean bToc,
boolean bDrill,
java.lang.String password)
Exports the current report to a PDF file. |
boolean |
exportToPdf(java.lang.String filename,
PDFParameter parameter)
Exports the current report to a PDF file. |
boolean |
exportToPdf(java.lang.String rstFileName,
java.lang.String pdfFileName)
Exports result report file(with the .rst extension)to a PDF file. |
boolean |
exportToPdf(java.lang.String rstFileName,
java.lang.String pdfFileName,
boolean noMargin)
Exports result report file(with the .rst extension)to a PDF file. |
boolean |
exportToPdf(java.lang.String rstFileName,
java.lang.String pdfFileName,
boolean noMargin,
boolean isSimPrintMode)
Exports result report file(with the .rst extension)to a PDF file. |
boolean |
exportToPdf(java.lang.String rstFileName,
java.lang.String pdfFileName,
boolean noMargin,
boolean isSimPrintMode,
boolean isCompressImage)
Exports result report file(with the .rst extension)to a PDF file. |
boolean |
exportToPdf(java.lang.String rstFileName,
java.lang.String pdfFileName,
boolean noMargin,
boolean isSimPrintMode,
int isCompressImage,
boolean isTransparent)
Exports result report file(with the .rst extension)to a PDF file. |
boolean |
exportToPdf(java.lang.String rstFileName,
java.lang.String pdfFileName,
boolean noMargin,
boolean isSimPrintMode,
int isCompressImage,
boolean isTransparent,
boolean bToc,
boolean bDrill)
Exports the current report to a PDF file. |
boolean |
exportToPdf(java.lang.String rstFileName,
java.lang.String pdfFileName,
boolean noMargin,
boolean isSimPrintMode,
int isCompressImage,
boolean isTransparent,
boolean bToc,
boolean bDrill,
java.lang.String password)
Exports the current report to a PDF file. |
boolean |
exportToPdf(java.lang.String rstFileName,
java.lang.String filename,
PDFParameter parameter)
Exports the current report to a PDF file. |
boolean |
exportToPS(ExportInfo info,
PSParameter param)
Exports the report to postscript file. |
boolean |
exportToPS(java.io.OutputStream stream)
Exports the current report to a PS(PostScript) stream. |
boolean |
exportToPS(java.io.OutputStream stream,
boolean noMargin)
Exports the current report to a PS(PostScript) stream. |
boolean |
exportToPS(java.lang.String psFileName)
Exports the current report to a PS(PostScript) file. |
boolean |
exportToPS(java.lang.String psFileName,
boolean noMargin)
Exports the current report to a PS(PostScript) file. |
boolean |
exportToPS(java.lang.String rstFileName,
java.lang.String psFileName)
Exports report result file(with the .rst extension)to a PS(PostScript) file. |
boolean |
exportToPS(java.lang.String rstFileName,
java.lang.String psFileName,
boolean noMargin)
Exports report result file(with the .rst extension)to a PS(PostScript) file. |
boolean |
exportToRst(java.util.Map reportInfo,
java.lang.String rstFileName,
boolean isZip)
save reports and views to a .rst file. |
boolean |
exportToRst(java.lang.String rstFileName)
save current report to a .rst file. |
boolean |
exportToRst(java.lang.String loadRstFileName,
java.lang.String rstFileName)
load a .rst file and save to another .rst file. |
boolean |
exportToRtf(ExportInfo info,
RtfParameter param)
Exports the report to RTF file. |
boolean |
exportToRtf(java.io.OutputStream stream)
Exports the current report to RTF(Rich Text Format). |
boolean |
exportToRtf(java.io.OutputStream stream,
boolean noMargin)
Exports the current report to RTF(Rich Text Format). |
boolean |
exportToRtf(java.lang.String rtfFileName)
Exports the current report to RTF(Rich Text Format). |
boolean |
exportToRtf(java.lang.String rtfFileName,
boolean noMargin)
Exports the current report to RTF(Rich Text Format). |
boolean |
exportToRtf(java.lang.String rstFileName,
java.lang.String rtfFileName)
Exports report result file(with the .rst extension)to RTF(Rich Text Format). |
boolean |
exportToRtf(java.lang.String rstFileName,
java.lang.String rtfFileName,
boolean noMargin)
Exports report result file(with the .rst extension)to RTF(Rich Text Format). |
boolean |
exportToText(ExportInfo info,
TextParameter param)
Exports the report to text file. |
boolean |
exportToText(java.io.OutputStream stream,
boolean isNormalText)
Exports current report to a OutputStream. |
boolean |
exportToText(java.io.OutputStream stream,
boolean isNormalText,
boolean isRepeat,
char delimiter,
int udchWidth,
int udchHeight,
boolean compress,
int resolution,
boolean quoteMark,
boolean hasHeadFoot,
boolean forWindows)
Exports current report to a TEXT file. |
boolean |
exportToText(java.lang.String textFileName,
boolean isNormalText)
Exports current report to a TEXT file. |
boolean |
exportToText(java.lang.String textFileName,
boolean isNormalText,
boolean isRepeat,
char delimiter)
Exports current report to a TEXT file. |
boolean |
exportToText(java.lang.String textFileName,
boolean isNormalText,
boolean isRepeat,
char delimiter,
int udchWidth,
int udchHeight)
Exports current report to a TEXT file. |
boolean |
exportToText(java.lang.String textFileName,
boolean isNormalText,
boolean isRepeat,
char delimiter,
int udchWidth,
int udchHeight,
boolean compress,
int resolution)
Exports current report to a TEXT file. |
boolean |
exportToText(java.lang.String textFileName,
boolean isNormalText,
boolean isRepeat,
char delimiter,
int udchWidth,
int udchHeight,
boolean compress,
int resolution,
boolean quoteMark,
boolean hasHeadFoot)
Exports current report to a TEXT file. |
boolean |
exportToText(java.lang.String textFileName,
boolean isNormalText,
boolean isRepeat,
char delimiter,
int udchWidth,
int udchHeight,
boolean compress,
int resolution,
boolean quoteMark,
boolean hasHeadFoot,
boolean forWindows)
Exports current report to a TEXT file. |
boolean |
exportToText(java.lang.String textFileName,
boolean isNormalText,
boolean isRepeat,
char delimiter,
int udchWidth,
int udchHeight,
boolean compress,
int resolution,
boolean quoteMark,
boolean hasHeadFoot,
boolean forWindows,
boolean ignoreDelimiter)
Exports current report to a TEXT file. |
boolean |
exportToText(java.lang.String textFileName,
boolean isNormalText,
int udchWidth,
int udchHeight)
Exports current report to a TEXT file. |
boolean |
exportToText(java.lang.String rstFileName,
java.lang.String textFileName,
boolean isNormalText)
Exports result report file(with the .rst extension)to a TEXT file. |
boolean |
exportToText(java.lang.String rstFileName,
java.lang.String textFileName,
boolean isNormalText,
boolean isRepeat,
char delimiter)
Exports result report file(with the .rst extension)to a TEXT file. |
boolean |
exportToText(java.lang.String rstFileName,
java.lang.String textFileName,
boolean isNormalText,
boolean isRepeat,
char delimiter,
int udchWidth,
int udchHeight)
Exports result report file(with the .rst extension)to a TEXT file. |
boolean |
exportToText(java.lang.String rstFileName,
java.lang.String textFileName,
boolean isNormalText,
boolean isRepeat,
char delimiter,
int udchWidth,
int udchHeight,
boolean isQuoteMark,
boolean hasHeadFoot)
Exports result report file(with the .rst extension)to a TEXT file. |
boolean |
exportToText(java.lang.String rstFileName,
java.lang.String textFileName,
boolean isNormalText,
boolean isRepeat,
char delimiter,
int udchWidth,
int udchHeight,
boolean compress,
int resolution)
Exports result report file(with the .rst extension)to a TEXT file. |
boolean |
exportToText(java.lang.String rstFileName,
java.lang.String textFileName,
boolean isNormalText,
boolean isRepeat,
char delimiter,
int udchWidth,
int udchHeight,
boolean compress,
int resolution,
boolean quoteMark,
boolean hasHeadFoot)
Exports result report file(with the .rst extension)to a TEXT file. |
boolean |
exportToText(java.lang.String rstFileName,
java.lang.String textFileName,
boolean isNormalText,
boolean isRepeat,
char delimiter,
int udchWidth,
int udchHeight,
boolean compress,
int resolution,
boolean quoteMark,
boolean hasHeadFoot,
boolean forWindows)
Exports result report file(with the .rst extension)to a TEXT file. |
boolean |
exportToText(java.lang.String rstFileName,
java.lang.String textFileName,
boolean isNormalText,
boolean isRepeat,
char delimiter,
int udchWidth,
int udchHeight,
boolean compress,
int resolution,
boolean quoteMark,
boolean hasHeadFoot,
boolean forWindows,
boolean ignoreDelimiter)
Exports result report file(with the .rst extension)to a TEXT file. |
boolean |
exportToText(java.lang.String rstFileName,
java.lang.String textFileName,
boolean isNormalText,
int udchWidth,
int udchHeight)
Exports result report file(with the .rst extension)to a TEXT file. |
boolean |
exportToXls(ExportInfo info,
ExcelParameter param)
Exports the report to Excel file. |
boolean |
exportToXls(java.io.OutputStream os)
Exports the current report to BIFF(Binary File Format). |
boolean |
exportToXls(java.io.OutputStream os,
int isWordWrap,
int param,
boolean shareLabel)
Exports report result file(with the .rst extension)to BIFF(Binary File Format). |
boolean |
exportToXls(java.lang.String xlsFileName)
Exports the current report to BIFF(Binary File Format). |
boolean |
exportToXls(java.lang.String xlsFileName,
int isWordWrap)
Exports report result file(with the .rst extension)to BIFF(Binary File Format). |
boolean |
exportToXls(java.lang.String xlsFileName,
int isWordWrap,
boolean isBiff8)
Exports report result file(with the .rst extension)to BIFF(Binary File Format). |
boolean |
exportToXls(java.lang.String xlsFileName,
int isWordWrap,
boolean isBiff8,
int param)
Exports report result file(with the .rst extension)to BIFF(Binary File Format). |
boolean |
exportToXls(java.lang.String xlsFileName,
int isWordWrap,
boolean isBiff8,
int param,
boolean shareLabel)
Exports report result file(with the .rst extension)to BIFF(Binary File Format). |
boolean |
exportToXls(java.lang.String rstFileName,
java.lang.String xlsFileName)
Exports report result file(with the .rst extension)to BIFF(Binary File Format). |
boolean |
exportToXls(java.lang.String rstFileName,
java.lang.String xlsFileName,
int isWordWrap)
Exports report result file(with the .rst extension)to BIFF(Binary File Format). |
boolean |
exportToXls(java.lang.String rstFileName,
java.lang.String xlsFileName,
int isWordWrap,
boolean isBiff8)
Exports report result file(with the .rst extension)to BIFF(Binary File Format). |
boolean |
exportToXls(java.lang.String rstFileName,
java.lang.String xlsFileName,
int isWordWrap,
boolean isBiff8,
int param)
Exports report result file(with the .rst extension)to BIFF(Binary File Format). |
boolean |
exportToXls(java.lang.String rstFileName,
java.lang.String xlsFileName,
int isWordWrap,
boolean isBiff8,
int param,
boolean shareLabel)
Exports report result file(with the .rst extension)to BIFF(Binary File Format). |
boolean |
exportToXML(ExportInfo info,
XmlParameter param)
Exports the report to xml file. |
boolean |
exportToXML(java.lang.String xmlFileName,
boolean isMultiFile,
boolean isOnlyData)
Deprecated. |
boolean |
exportToXML(java.lang.String xmlFileName,
boolean isOnlyData,
java.lang.String existXSFile)
Exports the current report to XML. |
boolean |
exportToXML(java.lang.String rstFileName,
java.lang.String xmlFileName,
boolean isMultiFile,
boolean isOnlyData)
Deprecated. |
boolean |
exportToXML(java.lang.String rstFileName,
java.lang.String xmlFileName,
boolean isOnlyData,
java.lang.String existedSchemaFile)
Exports the specified report result to XML. |
boolean |
exportToXMLObject(boolean isOnlyData,
java.lang.String existedSchemaFile)
Initialize exporting the current report to XML Element. |
boolean |
exportToXMLObject(java.lang.String rstFileName,
boolean isOnlyData,
java.lang.String existedSchemaFile)
Initialize exporting the specified report result to XML Element. |
java.lang.String[] |
getAllDataSource(int rptStatus)
get all datasource name used by reports with specified status. |
static java.lang.String[] |
getAllDataSource(java.lang.String catName)
get all datasource name of specified catalog. |
static java.lang.String[] |
getAllDataSource(java.lang.String rptSetName,
int rptStatus)
|
static java.lang.String[] |
getAllDataSource(java.lang.String catName,
java.lang.String rptSetName,
int rptStatus)
get all datasource name used by reports with specified status. |
java.util.Vector |
getAllHtmlFile()
Returns all html files that are generated by exportToHtml. |
static java.util.Vector |
getAllMediaTray(java.lang.String printerName)
for get all media tray for specify printer.Only can do this in JDK14 and advance JDK version |
java.util.Vector |
getAllPdfFile()
Returns all PDF files that are generated by exportToPDF. |
static java.util.Vector |
getAllPrinters()
for get the all printer in system.only can do this in JDK14 and advance JDK version |
static java.util.Vector |
getAllPrinters(java.lang.String reportHome)
If use JDK14 and higher JDK version to setup production, will return system all avilable printer.Otherwise get all printer names which user defined in printers.ini |
java.util.Vector |
getAllRtfFile()
Returns all RTF files that are generated by exportToRTF. |
java.util.Vector |
getAllXlsFile()
Returns all Excel files that are generated by exportToXls. |
java.util.Vector |
getAllXMLFile()
return the output file of export to xml |
java.util.Vector |
getAvailableLocales(java.lang.String clt)
Gets all of the Locales that current report supported. |
java.util.Enumeration |
getAvailableQueryFields()
Gets the available fields of the query The available fields include: 1. |
java.util.Enumeration |
getAvailableWherePortions()
Gets the enumeration of all the where portion names in the catalog. |
java.util.Enumeration |
getAvailableWherePortions(java.lang.String datasourceName,
java.lang.String queryName)
Gets the enumeration of all the where portion names in the catalog. |
java.lang.String |
getCatName()
Gets the name of the catalog. |
java.lang.String |
getClientName()
Gets the client name. |
Communicator |
getCommunicator(java.lang.String filename,
int[] pageNums)
Gets the communicator from a result file. |
Communicator |
getCommunicator(java.lang.String filename,
int[] pageNums,
java.lang.String rptName,
java.lang.String viewName)
Gets the communicator from a result file. |
Communicator |
getCommunicator(java.lang.String rptName,
java.lang.String viewName,
boolean security)
|
int |
getConvertFromEncoding()
Gets the original encoding for convertor of traditional/simple chinese |
int |
getConvertToEncoding()
Gets the target encoding for convertor of traditional/simple chinese |
ReportInfo |
getCurrentReport()
Gets the current report information. |
java.util.Vector |
getCurrReportParams()
gets all parameters used by the current report in the report set. |
java.lang.String |
getDataDriver()
Get the data driver of the report which the engine will run. |
java.lang.String |
getDataSetName()
Get the dataset name which is defined with datadriver |
static java.lang.String |
getDefaultEncoding()
Gets default encoding of Engine Bean |
static java.lang.String |
getDefaultLocale()
Gets default Locale of Engine Bean |
java.util.Vector |
getDetailsFields()
Get all the fields information in the details section including fields in all subreport a field informaiton including field name and type |
java.lang.String |
getEncoding()
Gets current encoding. |
InputStreamFactory |
getHDSStreamFactory(java.lang.String datasourceName,
java.lang.String HDSName)
Gets HDS data stream factory |
java.lang.String |
getHelpPath()
Gets the help path. |
int |
getID()
get id of engine, the id is unique identification of a engine |
boolean |
getIsRSDQuickViewMode()
Gets status of JReport DHTML quick-view mode |
java.lang.String |
getJoinCondition()
Get join portion condition caluse in SQL statement. |
java.lang.String |
getKey()
Gets the key of JReport runtime. |
java.lang.String |
getLoadReport()
get String of load report flag. |
NLSBundleInfo |
getNLSBundleInfo()
Gets NLS resource bundled informations |
int[] |
getPageNumbers()
Gets the page numbers of page level security. |
int |
getPageOrientation()
Gets the page orientation. |
java.util.Hashtable |
getParamDescs()
Get Hashtable contaions all objects of ParamDesc the report needed contains all sub-report. |
java.lang.String |
getParamFile()
Sets the name of the parameter values file. |
java.util.Hashtable |
getParamToSubRpt()
Returns a Hashtable. |
java.lang.String |
getParamValues()
Gets the parameter values of the report. |
java.lang.String |
getPrintStatus()
Get print status after printing. |
java.lang.String |
getReason()
Get the error reason after occur error. |
int |
getRecordLength()
Deprecated. As of JReport version 8, programs return -1 always. |
Communicator |
getReportCommunicator()
Get the Communicator of this report. |
java.lang.String |
getReportHome()
Gets the report home path where the report.ini and other JReport system files exist. |
java.lang.String |
getReportName()
Gets the name of report. |
java.util.Vector |
getReportParams()
get parameters used by current reports. |
java.util.Vector |
getReportParams(int status)
get parameters used by current reports. |
java.util.Vector |
getReportParams(java.lang.String userName,
boolean bFirstLevel)
Gets all parameters in this report. |
java.util.Vector |
getReportParams(java.lang.String userName,
ParamDesc param,
java.lang.String value,
boolean forRemove)
Return parameters related to the parameter specified by param and value. |
java.util.Vector |
getReportParams(java.lang.String userName,
java.lang.String paramName,
java.lang.String paramValue,
boolean isAll)
|
java.util.Vector |
getReportParams(java.util.Vector reportNames)
get parameters used by current reports. |
java.util.Vector |
getReportsOfReportSet()
get report info |
static java.util.Vector |
getReportsOfReportSet(java.lang.String reportSetFileName)
|
static java.util.Vector |
getReportsOfReportSet(java.lang.String catName,
java.lang.String reportSetFileName)
get report info |
java.util.Vector |
getReportsOfResult(java.lang.String rstFileName)
get report info from result file |
java.lang.String |
getResultFile()
Gets the name of the result file which will be generated by JReport Engine Bean. |
java.lang.String |
getResultSet(java.lang.String url)
Gets the cach query result set of the report which the engine will run. |
RuntimeInfo |
getRuntimeInfo()
Deprecated. |
RuntimeInfo |
getRuntimeInfo(java.lang.String reportName)
Gets RuntimeInfo of report |
java.util.HashMap |
getRuntimeInfos()
Gets RuntimeInfos of reportset |
java.lang.String |
getSID()
Gets security identifier of page level security. |
boolean |
getSingleThread()
Checks current engine is whether single-thread. |
java.lang.String |
getSQL()
Gets the sql statement of this report. |
java.lang.String |
getStatus()
Gets the status after an action. |
java.util.Vector |
getStyleGroupNames()
Get all style group names in template |
java.lang.String |
getTemplatePath()
Gets the template path. |
java.lang.String |
getTempPath()
Gets the temporary path. |
java.lang.Throwable |
getThreadError()
gets throwable that throws when report runing |
java.lang.Throwable |
getThrowable()
Gets the throwable error information. |
boolean |
getThrowException()
return true if the engine throws exception while program throw exception. |
int |
getTotalPageNumber()
Gets the total page number of the report. |
java.lang.String |
getUID()
Gets the UserID of JReport runtime. |
static java.lang.String[] |
getUserInfo(java.lang.String catName,
java.lang.String dataSourceName)
get default user info in specified catalog and data source |
static java.lang.String[] |
getUserInfoByReport(java.lang.String reportName,
java.lang.String dataSourceName)
get default user info in specified catalog and data source |
java.lang.String |
getVersion()
Get version number, build number of the current version. |
java.lang.String |
getWhereCondition()
Get where portion conditions caluse in SQL statement. |
java.lang.String |
getWherePortionsSQL(java.lang.String nameOfWherePortion)
Gets the specified where portion. |
java.lang.String |
getWherePortionsSQL(java.lang.String nameOfWherePortion,
java.lang.String sourceName)
Gets the specified where portion. |
InputStreamFactory |
getXmlStreamFactory(java.lang.String datasourceName)
Gets xml data stream factory |
java.lang.String |
getXSDFile()
gets the report template xsd file. |
boolean |
hasPageSecurity()
Checks the current report security. |
boolean |
hasPageSecurity(java.lang.String rptName,
java.lang.String viewName)
Checks the current report security. |
boolean |
hasParameter()
check whether current report have parameters. |
boolean |
isIgnoreExportStyle()
Gets if the report exporting ignore export style |
boolean |
isIgnoreExportStyle(boolean ignoreExportStyle)
Sets if the report exporting ignore export style |
void |
layoutReport(java.lang.String rptName)
layout a report. |
void |
modifyUserInfo(java.lang.String strUserName,
java.lang.String strPassword)
Modifies the User and Password information in the specified connection description. |
void |
modifyUserInfo(java.lang.String strUserName,
java.lang.String strPassword,
java.lang.String dataSourceName)
Modifies the User and Password information in the specified connection description. |
boolean |
modifyWherePortion(java.lang.String strName,
java.lang.String strSQL)
|
boolean |
modifyWherePortion(java.lang.String strName,
java.util.Vector vecGroups)
|
java.util.Vector |
paramValueChanged(java.lang.String paramName,
java.lang.String paramValue)
change all Param Descs when cascading parameter changed |
java.util.Vector |
paramValueChanged(java.lang.String paramName,
java.lang.String[] paramValues)
change all Param Descs when parameter changed |
void |
printReport()
Prints the report. |
void |
printReport(ExportInfo info,
java.lang.Object job,
boolean bInteractive,
java.lang.Object pageFormat,
boolean bInBackground,
JReportPrintListener jreportprintlistener,
int useJDK,
java.lang.String jobName,
java.util.Vector attributeInfo,
java.lang.String printer)
Prints the report with the specified parameters. |
void |
printReport(java.lang.Object job,
boolean bInteractive,
java.lang.Object pageFormat,
boolean bInBackground,
JReportPrintListener jreportprintlistener,
int useJDK,
java.lang.String jobName,
java.util.Vector attributeInfo,
java.lang.String printer)
Prints the report with the specified parameters. |
void |
printReport(java.lang.Object printJob,
java.lang.Object pageFormat,
boolean bInteractive,
boolean bInBackground,
boolean bUseJDK11)
Prints the report with the special parameters. |
void |
printReport(java.lang.Object printJob,
java.lang.Object pageFormat,
boolean bInteractive,
boolean bInBackground,
boolean bUseJDK11,
boolean bSeparateLargePage)
Prints the report with the special parameters. |
void |
printReport(java.lang.Object printJob,
java.lang.Object pageFormat,
boolean bInteractive,
boolean bInBackground,
boolean bUseJDK11,
boolean bSeparateLargePage,
java.lang.String jobName)
|
void |
printReport(java.lang.Object printJob,
java.lang.Object pageFormat,
boolean bInteractive,
boolean bInBackground,
boolean bUseJDK11,
boolean bSeparateLargePage,
java.lang.String jobName,
java.lang.String printer)
|
void |
printReportJDK14(boolean bInteractive,
boolean bInBackground,
JReportPrintListener jreportprintlistener,
java.lang.String jobName,
java.util.Vector attributeInfo,
java.util.Vector customMedias,
java.lang.String printer)
Prints the report with the specified parameters. |
org.w3c.dom.Element |
publishXMLNextPage()
return next xml object when export to xml object. |
void |
refreshReport(java.lang.String rptName)
build bound data info of report for data engine and layout report. |
boolean |
relayout(java.lang.String reportName,
RuntimeInfo info)
Re-run report with specified RuntimeInfo |
void |
runAllReport()
run all OPEN reports in the report set. |
void |
runCurrentReport()
run current report based on current report in the report set. |
void |
runDataSet(java.lang.String dataSetId)
run a data set and run related reports. |
void |
runReport()
run all opened report |
void |
runReport(boolean genRst)
parameter genRst decide to output rst file or not, during runReport. |
void |
runReport(java.lang.String rsdFilename)
run report based on rsd report file. |
void |
runReport(java.lang.String[] rptNames,
java.util.Vector[] viewNames)
|
void |
runReport(java.util.Vector vReportName)
run specified reports in the report set. |
boolean |
save(java.lang.String resultFileName)
save current report to result file. |
boolean |
saveCatalog()
Saves the catalog |
boolean |
saveWherePortion(java.lang.String strName,
java.lang.String strSQL)
|
boolean |
saveWherePortion(java.lang.String strName,
java.lang.String strQueryName,
java.lang.String strSQL)
Saves the where portion to the specified query and save the catalog. |
boolean |
saveWherePortion(java.lang.String strName,
java.lang.String dataSourceName,
java.lang.String strQueryName,
java.lang.String strSQL)
Saves the where portion to the specified query and save the catalog. |
boolean |
saveWherePortion(java.lang.String strName,
java.lang.String dataSourceName,
java.lang.String strQueryName,
java.util.Vector vecGroups)
Save the where portion to the specified query and save the catalog. |
boolean |
saveWherePortion(java.lang.String strName,
java.lang.String strQueryName,
java.util.Vector vecGroups)
Save the where portion to the specified query and save the catalog. |
boolean |
saveWherePortion(java.lang.String strName,
java.util.Vector vecGroups)
|
void |
sendNormalMail(java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
java.util.Vector additionfiles)
Export current report engine that has already run to mail. |
void |
sendNormalMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
java.util.Vector additionfiles)
|
void |
setAuthencatorMessage(java.lang.String username,
java.lang.String password,
java.lang.String mailAddress)
set the mail authencator message |
void |
setCatalogBean(JRCatalog catalogBean)
Sets the catalog bean. |
void |
setCatName(java.lang.String catName)
Sets the name of the catalog. |
void |
setClientName(java.lang.String name)
Sets the client name. |
void |
setConnection(java.sql.Connection userDbConnection)
Set the connection required to run the engine. |
void |
setConnection(java.sql.Connection userDbConnection,
boolean fetchSupportInfo)
Set the connection required to run the engine. |
void |
setConnection(java.lang.String dataSourceName,
java.sql.Connection userDbConnection)
Sets the connection required to run the engine. |
void |
setConnection(java.lang.String dataSourceName,
java.sql.Connection userDbConnection,
boolean fetchSupportInfo)
Sets the connection required to run the engine. |
void |
setConnection(java.lang.String strUID,
java.lang.String strPSWD)
method setConnection() set arguments for connectiong database. |
void |
setConnection(java.lang.String dataSourceName,
java.lang.String strUID,
java.lang.String strPSWD)
Sets the connection required to run the engine. |
void |
setConnection(java.lang.String strURL,
java.lang.String strUID,
java.lang.String strPSWD,
java.lang.String strJdbcDriver)
Sets the connection required to run the engine. |
void |
setConnection(java.lang.String strURL,
java.lang.String strUID,
java.lang.String strPSWD,
java.lang.String strJdbcDriver,
boolean fetchSupportInfo)
Sets the connection required to run the engine. |
void |
setConnection(java.lang.String dataSourceName,
java.lang.String strURL,
java.lang.String strUID,
java.lang.String strPSWD,
java.lang.String strJdbcDriver)
Sets the connection required to run the engine. |
void |
setConnection(java.lang.String dataSourceName,
java.lang.String strURL,
java.lang.String strUID,
java.lang.String strPSWD,
java.lang.String strJdbcDriver,
boolean fetchSupportInfo)
Sets the connection required to run the engine. |
void |
setConvertEncoding(int fromEncoding,
int toEncoding)
Sets the encoding for convertor of traditional/simple chinese |
void |
setDataDriver(java.lang.String url)
Sets the data driver of the report which the engine will run. |
void |
setDataDriver(java.lang.String url,
java.lang.String dataSetName)
Sets the data driver of the dataset in report which the engine will run. |
static void |
setDefaultEncoding(java.lang.String defaultEncoding)
Sets default encoding of Engine Bean |
static void |
setDefaultLocale(java.lang.String defaultLocale)
Sets default Locale of Engine Bean |
void |
setEncoding(java.lang.String encoding)
Sets current encoding. |
void |
setFetchSupportInfo(boolean fetchSupportInfo)
Set true to get the user support information. |
void |
setHDSStreamFactory(java.lang.String datasourceName,
java.lang.String HDSName,
InputStreamFactory streamFactory)
Set HDS data stream factory |
void |
setHelpPath(java.lang.String sHelpPath)
Sets the help path. |
void |
setHtmlImageType(int imageType)
Deprecated. |
void |
setKey(java.lang.String key)
Sets the key of JReport runtime.Applied from Version 4.0 |
void |
setLoadReport(java.lang.String loadReport)
Enables/disables to run the report. |
void |
setLocale(java.util.Locale currentLocale)
Sets current locale. |
void |
setLocale(java.lang.String locale)
Deprecated Sets current Locale by a string. |
void |
setLocale(java.lang.String language,
java.lang.String country)
Sets current Locale by string language and country. |
boolean |
setLogFile(java.lang.String fileName)
Resets the log file. |
void |
setNamedWherePortion(java.lang.String name)
Sets the where portion name in the query. |
void |
setNamedWherePortion(java.lang.String dataSourceName,
java.lang.String queryName,
java.lang.String name)
Sets the where portion name in the query. |
void |
setNLSBundleInfo(NLSBundleInfo info)
Sets NLS resource bundled informations |
void |
setPageNumbers(int[] pageNums)
Sets the page numbers of page level security. |
void |
setParamFile(java.lang.String paramFile)
Sets the name of the parameter values file. |
void |
setParamValues(java.util.Properties params)
Sets the parameter values of the report. |
void |
setParamValues(java.lang.String paramValues)
Sets the parameter values of the report. |
void |
setPrintStatus()
set the print status before printing. |
void |
setReportHome(java.lang.String reportHome)
Sets the report home path where the report.ini and other JReport system files exist. |
void |
setReportName(java.lang.String reportName)
Sets the name of report. |
void |
setResultFile(java.lang.String resultFile)
Specifies the name of the result file which will be generated by JReport Engine Bean. |
void |
setResultSet(java.lang.String url)
Sets the cach query result set of the report which the engine will run. |
void |
setRSDQuickViewMode(boolean isRSDQuickView)
Sets JReport DHTML quick-view mode |
void |
setRuntimeInfo(RuntimeInfo runtimeInfo)
Deprecated. |
void |
setRuntimeInfo(java.lang.String reportName,
RuntimeInfo runtimeInfo)
Set RuntimeInfo of report |
void |
setRuntimeInfos(java.util.HashMap runtimeInfos)
Sets RuntimeInfos of reportset key is report instance name, value is RuntimeInfo |
void |
setSecurityContext(SecurityContext sc)
Sets the Security Context used for report |
void |
setShowInfoLevel(int level)
Deprecated. |
void |
setSID(java.lang.String sid)
Sets security identifier of page level security. |
void |
setSingleThread(boolean single)
Sets the report engine to use single thread or not. |
void |
setStyleGroup(java.lang.String styleGroupName)
Set style group. |
void |
setTemplatePath(java.lang.String sTemplatePath)
Sets the template path. |
void |
setTempPath(java.lang.String sTempPath)
Sets the temporary path. |
void |
setThrowException(boolean isThrowException)
set whether throw exception while program throw exception. |
void |
setTimeZone(java.lang.String timeZone)
Sets current time zone by a string. |
void |
setTimeZone(java.util.TimeZone curTimeZone)
Sets current time zone. |
void |
setUID(java.lang.String uid)
Sets the UserID of JReport runtime .Applied from Version 4.0 |
void |
setUserName(java.lang.String name)
Sets the user name used for report Security Context |
void |
setUserResultSet(java.sql.ResultSet userResultSet)
Set the resultset required to run the report. |
void |
setWherePortion(java.lang.String where)
Sets the where portion in the SQl query. |
void |
setWherePortion(java.lang.String dataSourceName,
java.lang.String queryName,
java.lang.String where)
Sets the where portion in the SQl query. |
void |
setXmlStreamFactory(java.lang.String datasourceName,
InputStreamFactory streamFactory)
Sets xml data stream factory |
void |
setXSDFile(java.lang.String sFilename)
Sets the report template xsd file. |
void |
stopReport()
Deprecated. Stop running the report. |
void |
stopReport(java.lang.String[] reports,
java.util.Vector[] views)
Stop all the specified reports and views. |
void |
stopReport(java.lang.String report,
java.lang.String view)
Stop the specified report and view. |
void |
stopReportSet()
Stop all running the report. |
void |
waitForEngineFinish()
waiting until the engine process success. |
boolean |
xmlHasNextPage()
judge whether have next page when export to xml object |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.io.Externalizable |
|---|
readExternal, writeExternal |
| Methods inherited from interface jet.export.print.JReportPrintListener |
|---|
printEnd, printStart |
| Field Detail |
|---|
public static final int vOff
public static final int vDebug
public static final int vError
public static final int LANDSCAPE
public static final int PORTRAIT
public static final int RSTFILEMAIL
public static final int HTMLMAIL
public static final int HTMLFILEMAIL
public static final int PDFFILEMAIL
public static final int PLAINTXTMAIL
public static final int SDFTEXTMAIL
public static final int PSFILEMAIL
public static final int XLSFILEMAIL
public static final int RTFFILEMAIL
public static final int XMLFILEMAIL
public static final int DHTMLFILEMAIL
public static final int IE
public static final int NETSCAPE
public static final int VISIBLE
public static final int HIDDEN
public static final int KEEPORIGIN
public static final int NOWORDWRAP
public static final int WORDWRAPALL
public static final int EXPORTSHAPE
public static final int NOEXPORTSHAPE
public static final int GB
public static final int BIG5
public static final int RPT_STATUS_CURRENT
public static final int RPT_STATUS_OPEN
public static final int RPT_STATUS_ALL
public static int NLSSTATUS_ENABLE
public static int NLSSTATUS_DISABLE
public static int NLSSTATUS_AUTO
public static final java.lang.String PARAM_ALL_VALUE
| Constructor Detail |
|---|
public JREngine()
public JREngine(boolean setDebugLevel)
setDebugLevel - indicates whether to set debug info.
public JREngine(java.lang.String uid,
java.lang.String key)
uid - the UserID of JReport runtimekey - the key of JReoprt runtime
public JREngine(java.lang.String uid,
java.lang.String key,
boolean setDebugLevel)
uid - the UserID of JReport runtimekey - the key of JReoprt runtimesetDebugLevel - indicates whether to set debug info.| Method Detail |
|---|
public static java.lang.String getDefaultLocale()
public static void setDefaultLocale(java.lang.String defaultLocale)
defaultLocale - Locale String to be setpublic static java.lang.String getDefaultEncoding()
public static void setDefaultEncoding(java.lang.String defaultEncoding)
default - encoding String to be setpublic int getID()
public void setConvertEncoding(int fromEncoding,
int toEncoding)
fromEncoding - the original encoding for converttoEncoding - the target encoding for convertpublic int getConvertFromEncoding()
public int getConvertToEncoding()
public java.lang.String getUID()
public void setUID(java.lang.String uid)
uid - the UserID of JReport runtimepublic java.lang.String getKey()
public void setKey(java.lang.String key)
key - the key of JReport runtimepublic void setSingleThread(boolean single)
single - true use single-thread. Otherwise use multi-thread.public boolean getSingleThread()
public void setStyleGroup(java.lang.String styleGroupName)
public void setLocale(java.util.Locale currentLocale)
public void setLocale(java.lang.String locale)
public void setLocale(java.lang.String language,
java.lang.String country)
public void setEncoding(java.lang.String encoding)
public java.lang.String getEncoding()
public java.util.Vector getAvailableLocales(java.lang.String clt)
public void setTimeZone(java.util.TimeZone curTimeZone)
public void setTimeZone(java.lang.String timeZone)
public void setClientName(java.lang.String name)
public java.lang.String getClientName()
public void setTempPath(java.lang.String sTempPath)
sTempPath - the temporary path(absolute path).public java.lang.String getTempPath()
public void setTemplatePath(java.lang.String sTemplatePath)
sTemplatePath - the template path(absolute path).public void setXSDFile(java.lang.String sFilename)
sFilename - the template xsd file name(absolute path).public java.lang.String getXSDFile()
public java.lang.String getTemplatePath()
public void setHelpPath(java.lang.String sHelpPath)
sHelpPath - the help path(absolute path).public java.lang.String getHelpPath()
public java.lang.String getReportHome()
public void setReportHome(java.lang.String reportHome)
reportHome - the home path where the report.ini and
other JReport system files exist.public java.lang.String getReportName()
public void setReportName(java.lang.String reportName)
reportName - the name of the report which will be run.public void setCatName(java.lang.String catName)
catName - the name of the catalog.public java.lang.String getCatName()
public void setSID(java.lang.String sid)
sid - the security identifier.public void setPageNumbers(int[] pageNums)
pageNums - a int array of the page numbers.public int[] getPageNumbers()
public java.lang.String getSID()
public boolean hasPageSecurity()
public boolean hasPageSecurity(java.lang.String rptName,
java.lang.String viewName)
rptName - Indicates the report name of reportsetviewName - Indicates the view name of report
public int getPageOrientation()
public java.lang.String getParamValues()
public void setParamValues(java.lang.String paramValues)
paramValues - the string containing the parameter values
and separated by commas (',').public java.lang.String getParamFile()
public void setParamFile(java.lang.String paramFile)
Every parameter name to value pair occupies one line in the file (except that if a line ends with \, see bellow.) The name and value is separated by an equals sign '=' (if it exists), and the name is always on the left side and value on the right side.
More rules:
1. All whitespace characters around the name will be ignored, but whitespace characters around value will not be skipped.
2. This rule only applys to those lines whose line break occurs within value string. If a line ends with \, then the following line, if it exists, is treated as a continuation line. So that the value string of the current line (without the last '\'), a new line character ('\n') and the string of next line will be concatenated together. But if a line ends with "\\", "\\" will be treated as the termination character of value string and a single '\' will be appended to the value.
3. This rule only applys to name expression. If an equal sign follows "\\", this string will be treated as a part of parameter name instead of a separator character. For example, "a\\=b=c+d" will be treated as: name is "a=b", value is "c+d".
paramFile - the name of the parameter values file.
This will be ignored if the paramValues is specified.public void setParamValues(java.util.Properties params)
params - Properties object containing the parameter values, key is parameter name, value is String
value of parameter value.public java.lang.String getResultFile()
public void setResultFile(java.lang.String resultFile)
resultFile - the name of the result file.public void setResultSet(java.lang.String url)
url - the cach query result set of the report which the engine will run.public java.lang.String getResultSet(java.lang.String url)
public void setDataDriver(java.lang.String url)
url - the data driver of the report which the engine will run.
public void setDataDriver(java.lang.String url,
java.lang.String dataSetName)
url - the data driver of the dataset in report which the engine will run.dataSetName - the dataset name of the report which the engine will run.public java.lang.String getDataSetName()
public java.lang.String getDataDriver()
public java.lang.String getLoadReport()
public void setLoadReport(java.lang.String loadReport)
loadReport - a String, if it equals "yes"(case insensitive)
then the report will be run.public void setThrowException(boolean isThrowException)
isThrowException - public boolean getThrowException()
public java.lang.Throwable getThrowable()
public void runReport(boolean genRst)
public Communicator getReportCommunicator()
JRResultViewer.setCommunicator(jet.datastream.Communicator)public void waitForEngineFinish()
public boolean save(java.lang.String resultFileName)
throws java.lang.Exception
resultFileName - is result file name contains full path
java.lang.Exceptionpublic int getTotalPageNumber()
public void printReport()
public void printReport(java.lang.Object printJob,
java.lang.Object pageFormat,
boolean bInteractive,
boolean bInBackground,
boolean bUseJDK11)
printJob - the print job of this print action.pageFormat - the page format of this print action.bInteractive - a boolean value, if you set it to false, the print setup dialog will not show up.bInBackground - a boolean value, if you set it to false, the printing dialog will not show up.bUseJDK11 - a boolean value, if you set it to true, it will use JDK1.2.x
to print the report. Otherwise if you set it to false, it will use the JDK
which you are running to print the report. The JDK 1.1 printing method is
quick in speed but the printing quality is not guaranteed. However, The
JDK 1.2 method can return you with satisfactory result, even for a gif file,
but it is slow in speed.
For example, you can call the printReport method like this:
PrinterJob printJob = PrinterJob.getPrinterJob();
bean.printReport(printJob, printJob.defaultPage(), false, false, false);
public void printReport(java.lang.Object printJob,
java.lang.Object pageFormat,
boolean bInteractive,
boolean bInBackground,
boolean bUseJDK11,
boolean bSeparateLargePage)
printJob - the print job of this print action.pageFormat - the page format of this print action.bInteractive - a boolean value, if you set it to false, the print setup dialog will not show up.bInBackground - a boolean value, if you set it to false, the printing dialog will not show up.bUseJDK11 - a boolean value, if you set it to true, it will use JDK1.1.x
to print the report. Otherwise if you set it to false, it will use the JDK
which you are running to print the report. The JDK 1.1 printing method is
quick in speed but the printing quality is not guaranteed. However, The
JDK 1.2 method can return you with satisfactory result, even for a gif file,
but it is slow in speed.
For example, if bUseJDK11 is set false, you can call the printReport method like this:
PrinterJob printJob = PrinterJob.getPrinterJob();
bean.printReport(printJob, printJob.defaultPage(), false, false, false);bSeparateLargePage - a boolean value, if the report page size is larger
than the print paper size, and you want to separate the large report page
during printing, you should set this property to true. if the print page size
which you choose is less than the report page size, then the report will be
printed as multiple pages serially, this means we will seperate the large
page of the report automatically.
After you set it to true, for JDK1.2 or higher, the page format dialog will
be popped up. In this dialog, you can choose the page format which you want
to print with, we will use this page size for printing. For JDK1.1.x, however,
you must change the page format which you want to print with in the print
dialog(click the property button, then choose the page format).
Note: This printing mothod is not recommended, it may cause some unexpected
errors, for example, you may get an extra blank page.
public void printReport(java.lang.Object printJob,
java.lang.Object pageFormat,
boolean bInteractive,
boolean bInBackground,
boolean bUseJDK11,
boolean bSeparateLargePage,
java.lang.String jobName)
public void printReport(java.lang.Object printJob,
java.lang.Object pageFormat,
boolean bInteractive,
boolean bInBackground,
boolean bUseJDK11,
boolean bSeparateLargePage,
java.lang.String jobName,
java.lang.String printer)
public void printReport(java.lang.Object job,
boolean bInteractive,
java.lang.Object pageFormat,
boolean bInBackground,
JReportPrintListener jreportprintlistener,
int useJDK,
java.lang.String jobName,
java.util.Vector attributeInfo,
java.lang.String printer)
throws NoSuchPrintAttributeException
job - the print job of this print action.It is a instance of PrintJob or PrinterJob.
You can pass a PrinterJob or PrintJob object.If you set a null value,there would be create a PrinterJob or PrintJob for your task.
There need a PrintJob object in JDK1.1 or a PrinterJob object in JDK1.2,JDK1.4 print method.
If you pass a printerjob which is not a null value and set parameter bInteractive is true,
informations taked by printerjob would be reset by the values from print set up dialog such as Copies,PrintService,JobName.bInteractive - a boolean value, if you set it to true,present a print setup dialog to the user for changing the properties of the print job.
Otherwise the print setup dialog will not show up.pageFormat - is a instance of PageFormat class,which describes the size and orientation of a page to be printed.
The pageFormat will take effect only with JDK1.1 or JDK1.2.
We recommend to use attributeInfo vector instead of the printFormat object with JDK1.4bInBackground - a boolean value, if you set it to false,
show the printing progress dialog with printing progress bar in it.jreportprintlistener - is the listener of print.
It is a interface which contains two methods that printStart() and printEnd().
JeportPrintListener is located in jet.thinview.print package.
This interface is useful, when you want to get the print status -- start or end, for example. Otherwise, you can set it to null.useJDK - a int value, if you set it to 0, it will use JDK1.1
to print the report. Otherwise if you set it to 1, it will use the JDK1.2
which you are running to print the report.if you set it to 2, it will use the JDK1.4
which you are running to print the report. The JDK 1.1 printing method is
quick in speed but the printing quality is not guaranteed. However, The
JDK 1.2 method can return you with satisfactory result, even for a gif file,
but it is slow in speed.JDK 1.4 provide more options to do print such as specify tray.jobName - specify print job name.attributeInfo - is a vector which elements are string.
Each String has defined in interface PrintConfig.
For example,you can implement PrintConfig and call its fields like this:
attributeInfo.add(TRAY_MANUAL);
attributeInfo.add(ORIENTATION_PORTRAIT);printer - specify the printer you want to use.This printer name must be with full path.
You can call getAllPrinters() method for jdk 1.4 to get the list of system printers.
This printReport method is recommend for jdk 1.4 or above only -- a lot of features are only supported by jdk 1.4 or above.
An example of calling this printReport() method:
PrinterJob printJob = PrinterJob.getPrinterJob();
Vector attributeInfo = new Vector();
attributeInfo.add(TRAY_MANUAL);
attributeInfo.add(ORIENTATION_PORTRAIT);
bean.printReport(printJob, true,printJob.defaultPage(),
false,null,2,"JReport",
attributeInfo,"\\\\192.168.128.111\\Samsung SCX-5x12 Series PCL 6");
NoSuchPrintAttributeException
public void printReport(ExportInfo info,
java.lang.Object job,
boolean bInteractive,
java.lang.Object pageFormat,
boolean bInBackground,
JReportPrintListener jreportprintlistener,
int useJDK,
java.lang.String jobName,
java.util.Vector attributeInfo,
java.lang.String printer)
throws NoSuchPrintAttributeException
info - The report information for printing.job - the print job of this print action.It is a instance of PrintJob or PrinterJob.
You can pass a PrinterJob or PrintJob object.If you set a null value,there would be create a PrinterJob or PrintJob for your task.
There need a PrintJob object in JDK1.1 or a PrinterJob object in JDK1.2,JDK1.4 print method.
If you pass a printerjob which is not a null value and set parameter bInteractive is true,
informations taked by printerjob would be reset by the values from print set up dialog such as Copies,PrintService,JobName.bInteractive - a boolean value, if you set it to true,present a print setup dialog to the user for changing the properties of the print job.
Otherwise the print setup dialog will not show up.pageFormat - is a instance of PageFormat class,which describes the size and orientation of a page to be printed.
The pageFormat will take effect only with JDK1.1 or JDK1.2.
We recommend to use attributeInfo vector instead of the printFormat object with JDK1.4bInBackground - a boolean value, if you set it to false,
show the printing progress dialog with printing progress bar in it.jreportprintlistener - is the listener of print.
It is a interface which contains two methods that printStart() and printEnd().
JeportPrintListener is located in jet.thinview.print package.
This interface is useful, when you want to get the print status -- start or end, for example. Otherwise, you can set it to null.useJDK - a int value, if you set it to 0, it will use JDK1.1
to print the report. Otherwise if you set it to 1, it will use the JDK1.2
which you are running to print the report.if you set it to 2, it will use the JDK1.4
which you are running to print the report. The JDK 1.1 printing method is
quick in speed but the printing quality is not guaranteed. However, The
JDK 1.2 method can return you with satisfactory result, even for a gif file,
but it is slow in speed.JDK 1.4 provide more options to do print such as specify tray.jobName - specify print job name.attributeInfo - is a vector which elements are string.
Each String has defined in interface PrintConfig.
For example,you can implement PrintConfig and call its fields like this:
attributeInfo.add(TRAY_MANUAL);
attributeInfo.add(ORIENTATION_PORTRAIT);printer - specify the printer you want to use.This printer name must be with full path.
You can call getAllPrinters() method for jdk 1.4 to get the list of system printers.
This printReport method is recommend for jdk 1.4 or above only -- a lot of features are only supported by jdk 1.4 or above.
An example of calling this printReport() method:
PrinterJob printJob = PrinterJob.getPrinterJob();
Vector attributeInfo = new Vector();
attributeInfo.add(TRAY_MANUAL);
attributeInfo.add(ORIENTATION_PORTRAIT);
bean.printReport(printJob, true,printJob.defaultPage(),
false,null,2,"JReport",
attributeInfo,"\\\\192.168.128.111\\Samsung SCX-5x12 Series PCL 6");
NoSuchPrintAttributeExceptionpublic java.lang.String getPrintStatus()
public void setPrintStatus()
public java.awt.print.Pageable ExportToPageable()
public void exit()
public void exit(int timeout)
timeout - timeout time in milliseconds
public Communicator getCommunicator(java.lang.String filename,
int[] pageNums)
throws java.io.IOException
filename - the result filename. It is a full filename that is it contains full path and filename.pageNums - a int array of page numbers.
java.io.IOException
public Communicator getCommunicator(java.lang.String filename,
int[] pageNums,
java.lang.String rptName,
java.lang.String viewName)
throws java.io.IOException
filename - the result filename. It is a full filename that is it contains full path and filename.pageNums - a int array of page numbers.
java.io.IOExceptionpublic void stopReport()
public void stopReportSet()
public void stopReport(java.lang.String[] reports,
java.util.Vector[] views)
public void stopReport(java.lang.String report,
java.lang.String view)
public void setShowInfoLevel(int level)
level - the debug level, for example: vDebug | vErrorpublic void closeLog()
when all the engine have finised can call the method.
public boolean setLogFile(java.lang.String fileName)
fileName - the log file name
LogFileName specifies where the debug, error and other information will go. LogFileName contains both the path and the file name. If no path is specified, the current path is used. If no file name is specified, the file jreport.log is used. Only the log file specified here will take effect when running reports, and the log files specified before will be closed.
public java.lang.String getStatus()
public java.lang.String getReason()
public boolean hasParameter()
public java.util.Vector getStyleGroupNames()
public java.util.Vector getReportParams()
throws java.lang.Exception
java.lang.Exception
public java.util.Vector getReportParams(int status)
throws java.lang.Exception
java.lang.Exception
public java.util.Vector getReportParams(java.util.Vector reportNames)
throws java.lang.Exception
java.lang.Exception
public java.util.Vector getReportParams(java.lang.String userName,
boolean bFirstLevel)
throws java.lang.Exception
java.lang.Exception
public java.util.Vector getReportParams(java.lang.String userName,
java.lang.String paramName,
java.lang.String paramValue,
boolean isAll)
throws java.lang.Exception
java.lang.Exception
public java.util.Vector paramValueChanged(java.lang.String paramName,
java.lang.String paramValue)
public java.util.Vector paramValueChanged(java.lang.String paramName,
java.lang.String[] paramValues)
throws InvalidParameterException
InvalidParameterExceptionpublic java.util.Hashtable getParamDescs()
public java.util.Vector getReportParams(java.lang.String userName,
ParamDesc param,
java.lang.String value,
boolean forRemove)
throws java.lang.Exception
userName - param, - if param is null, then return all parameters used by the current report in a proper order and each of them are not other
parameter's value.value, - the new value. Which may lead the new paramters' vector returned back, or the parameter with new drop down list value
forRemove to be true indicates that call this method is used to remove the parameter from the dialog
java.lang.Exceptionpublic java.util.Hashtable getParamToSubRpt()
public boolean exportToRst(java.lang.String loadRstFileName,
java.lang.String rstFileName)
loadRstFileName - source rst file name contains full pathrstFileName - rst file name contains full path want to saved.
public boolean exportToRst(java.lang.String rstFileName)
rstFileName - rst file name contains full path want to saved.
public boolean exportToRst(java.util.Map reportInfo,
java.lang.String rstFileName,
boolean isZip)
rstFileName - rst file name contains full path want to saved.
public boolean exportToHtml(java.lang.String rstFileName,
java.lang.String htmlFileName)
rstFileName - the result file name.htmlFileName - the HTML file name.
public boolean exportToHtml(java.lang.String rstFileName,
java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser)
rstFileName - the result file name.htmlFileName - the HTML file name.bChartApplet - indicates whether the chart in html file is exported
as an applet.isMultiFile - indicates whether to export the html to
a file or to multiple files.bUsingTable - indicates whether to use html table format
when exporting html filesbHyperlink - indicates whether to generate a hyperlinkbPageNumber - indicates whether to generate page numbersbAbsolute - indicates the font size is absolute or relativeiBrowser - indicates the browser is IE or NETSCAPE. The value of
parameter int browser must be one of the IE or NETSCAPE.
public boolean exportToHtml(java.lang.String rstFileName,
java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile)
rstFileName - the result file name.htmlFileName - the HTML file name.bChartApplet - indicates whether the chart in html file is exported
as an applet.isMultiFile - indicates whether to export the html to
a file or to multiple files.bUsingTable - indicates whether to use html table format
when exporting html filesbHyperlink - indicates whether to generate a hyperlinkbPageNumber - indicates whether to generate page numbersbAbsolute - indicates the font size is absolute or relativeiBrowser - indicates the browser is IE or NETSCAPE. The value of
parameter int browser must be one of the IE or NETSCAPE.bincdrilldownfile - indicates to generate the drilldown html files
in the file list.
public boolean exportToHtml(java.lang.String rstFileName,
java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin)
rstFileName - the result file name.htmlFileName - the HTML file name.bChartApplet - indicates whether the chart in html file is exported
as an applet.isMultiFile - indicates whether to export the html to
a file or to multiple files.bUsingTable - indicates whether to use html table format
when exporting html filesbHyperlink - indicates whether to generate a hyperlinkbPageNumber - indicates whether to generate page numbersbAbsolute - indicates the font size is absolute or relativeiBrowser - indicates the browser is IE or NETSCAPE. The value of
parameter int browser must be one of the IE or NETSCAPE.bincdrilldownfile - indicates to generate the drilldown html files
in the file list.noMargin - indicates to generate the html files without page Margin.
public boolean exportToHtml(java.lang.String rstFileName,
java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin,
int resolution)
rstFileName - the result file name.htmlFileName - the HTML file name.bChartApplet - indicates whether the chart in html file is exported
as an applet.isMultiFile - indicates whether to export the html to
a file or to multiple files.bUsingTable - indicates whether to use html table format
when exporting html filesbHyperlink - indicates whether to generate a hyperlinkbPageNumber - indicates whether to generate page numbersbAbsolute - indicates the font size is absolute or relativeiBrowser - indicates the browser is IE or NETSCAPE. The value of
parameter int browser must be one of the IE or NETSCAPE.bincdrilldownfile - indicates to generate the drilldown html files
in the file list.noMargin - indicates to generate the html files without page Margin.resolution - indicates resolution of the html files .
public boolean exportToHtml(java.lang.String rstFileName,
java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin,
java.lang.String title)
rstFileName - the result file name.htmlFileName - the HTML file name.bChartApplet - indicates whether the chart in html file is exported
as an applet.isMultiFile - indicates whether to export the html to
a file or to multiple files.bUsingTable - indicates whether to use html table format
when exporting html filesbHyperlink - indicates whether to generate a hyperlinkbPageNumber - indicates whether to generate page numbersbAbsolute - indicates the font size is absolute or relativeiBrowser - indicates the browser is IE or NETSCAPE. The value of
parameter int browser must be one of the IE or NETSCAPE.bincdrilldownfile - indicates to generate the drilldown html files
in the file list.noMargin - indicates to generate the html files without page Margin.title - the title of the exported html file.
public boolean exportToHtml(java.lang.String rstFileName,
java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin,
java.lang.String title,
int resolution,
int overflowType)
rstFileName - the result file name.htmlFileName - the HTML file name.bChartApplet - indicates whether the chart in html file is exported
as an applet.isMultiFile - indicates whether to export the html to
a file or to multiple files.bUsingTable - indicates whether to use html table format
when exporting html filesbHyperlink - indicates whether to generate a hyperlinkbPageNumber - indicates whether to generate page numbersbAbsolute - indicates the font size is absolute or relativeiBrowser - indicates the browser is IE or NETSCAPE. The value of
parameter int browser must be one of the IE or NETSCAPE.bincdrilldownfile - indicates to generate the drilldown html files
in the file list.noMargin - indicates to generate the html files without page Margin.title - the title of the exported html file.resolution - indicates resolution of the html files .overflowType - Indicates the html text overflow type
public boolean exportToHtml(java.lang.String htmlFileName)
htmlFileName - the HTML file name.
public boolean exportToHtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser)
exportToHtml in interface EngineExecuterhtmlFileName - the HTML file name.bChartApplet - indicates whether the chart in html file is exported
as an applet.isMultiFile - indicates whether to export the html to
a file or to multiple files.bUsingTable - indicates whether to use html table format
when exporting html filesbHyperlink - indicates whether to generate a hyperlinkbPageNumber - indicates whether to generate page numbersbAbsolute - indicates the font size is absolute or relativeiBrowser - indicates the browser is IE or NETSCAPE. The value of
parameter int browser must be one of the IE or NETSCAPE.
public boolean exportToHtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile)
htmlFileName - the HTML file name.bChartApplet - indicates whether the chart in html file is exported
as an applet.isMultiFile - indicates whether to export the html to
a file or to multiple files.bUsingTable - indicates whether to use html table format
when exporting html filesbHyperlink - indicates whether to generate a hyperlinkbPageNumber - indicates whether to generate page numbersbAbsolute - indicates the font size is absolute or relativeiBrowser - indicates the browser is IE or NETSCAPE. The value of
parameter int browser must be one of the IE or NETSCAPE.bincdrilldownfile - indicates the drilldown html files were included in file list
public boolean exportToHtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin)
htmlFileName - the HTML file name.bChartApplet - indicates whether the chart in html file is exported
as an applet.isMultiFile - indicates whether to export the html to
a file or to multiple files.bUsingTable - indicates whether to use html table format
when exporting html filesbHyperlink - indicates whether to generate a hyperlinkbPageNumber - indicates whether to generate page numbersbAbsolute - indicates the font size is absolute or relativeiBrowser - indicates the browser is IE or NETSCAPE. The value ofbincdrilldownfile - indicates the drilldown html files were included in file listnoMargin - indicates to generate the html files without page margin.
public boolean exportToHtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin,
int resolution)
htmlFileName - the HTML file name.bChartApplet - indicates whether the chart in html file is exported
as an applet.isMultiFile - indicates whether to export the html to
a file or to multiple files.bUsingTable - indicates whether to use html table format
when exporting html filesbHyperlink - indicates whether to generate a hyperlinkbPageNumber - indicates whether to generate page numbersbAbsolute - indicates the font size is absolute or relativeiBrowser - indicates the browser is IE or NETSCAPE. The value ofbincdrilldownfile - indicates the drilldown html files were included in file listnoMargin - indicates to generate the html files without page margin.resolution - indicates resolution of the html files .
public boolean exportToHtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin,
java.lang.String title)
htmlFileName - the HTML file name.bChartApplet - indicates whether the chart in html file is exported
as an applet.isMultiFile - indicates whether to export the html to
a file or to multiple files.bUsingTable - indicates whether to use html table format
when exporting html filesbHyperlink - indicates whether to generate a hyperlinkbPageNumber - indicates whether to generate page numbersbAbsolute - indicates the font size is absolute or relativeiBrowser - indicates the browser is IE or NETSCAPE. The value ofbincdrilldownfile - indicates the drilldown html files were included in file listnoMargin - indicates to generate the html files without page margin.title - the title of the exported html file.
public boolean exportToHtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin,
java.lang.String title,
int resolution,
int overflowType)
htmlFileName - the HTML file name.bChartApplet - indicates whether the chart in html file is exported
as an applet.isMultiFile - indicates whether to export the html to
a file or to multiple files.bUsingTable - indicates whether to use html table format
when exporting html filesbHyperlink - indicates whether to generate a hyperlinkbPageNumber - indicates whether to generate page numbersbAbsolute - indicates the font size is absolute or relativeiBrowser - indicates the browser is IE or NETSCAPE. The value ofbincdrilldownfile - indicates the drilldown html files were included in file listnoMargin - indicates to generate the html files without page margin.title - the title of the exported html file.resolution - indicates resolution of the html files .overflowType - Indicates the html text overflow type
public boolean exportToHtml(java.lang.String rstFileName,
java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin,
java.lang.String title,
int resolution,
int overflowType,
int chartFormat)
public boolean exportToHtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin,
java.lang.String title,
int resolution,
int overflowType,
int chartFormat)
public void setHtmlImageType(int imageType)
HtmlParameter.setExportImageType(int)public java.util.Vector getAllHtmlFile()
public java.util.Vector getAllPdfFile()
public boolean exportToDhtml(java.lang.String rstFileName,
java.lang.String htmlFileName)
rstFileName - the result file name.htmlFileName - the HTML file name.
public boolean exportToDhtml(java.lang.String rstFileName,
java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser)
rstFileName - the result file name.htmlFileName - the HTML file name.bChartApplet - indicates whether the chart in html file is exported
as an applet.isMultiFile - indicates whether to export the html to
a file or to multiple files.bUsingTable - indicates whether to use html table format
when exporting html filesbHyperlink - indicates whether to generate a hyperlinkbPageNumber - indicates whether to generate page numbersbAbsolute - indicates the font size is absolute or relativeiBrowser - indicates the browser is IE or NETSCAPE. The value of
parameter int browser must be one of the IE or NETSCAPE.
public boolean exportToDhtml(java.lang.String rstFileName,
java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile)
rstFileName - the result file name.htmlFileName - the HTML file name.bChartApplet - indicates whether the chart in html file is exported
as an applet.isMultiFile - indicates whether to export the html to
a file or to multiple files.bUsingTable - indicates whether to use html table format
when exporting html filesbHyperlink - indicates whether to generate a hyperlinkbPageNumber - indicates whether to generate page numbersbAbsolute - indicates the font size is absolute or relativeiBrowser - indicates the browser is IE or NETSCAPE. The value of
parameter int browser must be one of the IE or NETSCAPE.bincdrilldownfile - indicates to generate the drilldown html files
in the file list.
public boolean exportToDhtml(java.lang.String rstFileName,
java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin)
rstFileName - the result file name.htmlFileName - the HTML file name.bChartApplet - indicates whether the chart in html file is exported
as an applet.isMultiFile - indicates whether to export the html to
a file or to multiple files.bUsingTable - indicates whether to use html table format
when exporting html filesbHyperlink - indicates whether to generate a hyperlinkbPageNumber - indicates whether to generate page numbersbAbsolute - indicates the font size is absolute or relativeiBrowser - indicates the browser is IE or NETSCAPE. The value of
parameter int browser must be one of the IE or NETSCAPE.bincdrilldownfile - indicates to generate the drilldown html files
in the file list.noMargin - indicates to generate the html files without page Margin.
public boolean exportToDhtml(java.lang.String rstFileName,
java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin,
int resolution)
rstFileName - the result file name.htmlFileName - the HTML file name.bChartApplet - indicates whether the chart in html file is exported
as an applet.isMultiFile - indicates whether to export the html to
a file or to multiple files.bUsingTable - indicates whether to use html table format
when exporting html filesbHyperlink - indicates whether to generate a hyperlinkbPageNumber - indicates whether to generate page numbersbAbsolute - indicates the font size is absolute or relativeiBrowser - indicates the browser is IE or NETSCAPE. The value of
parameter int browser must be one of the IE or NETSCAPE.bincdrilldownfile - indicates to generate the drilldown html files
in the file list.noMargin - indicates to generate the html files without page Margin.resolution - indicates resolution of the html files .
public boolean exportToDhtml(java.lang.String rstFileName,
java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin,
java.lang.String title)
rstFileName - the result file name.htmlFileName - the HTML file name.bChartApplet - indicates whether the chart in html file is exported
as an applet.isMultiFile - indicates whether to export the html to
a file or to multiple files.bUsingTable - indicates whether to use html table format
when exporting html filesbHyperlink - indicates whether to generate a hyperlinkbPageNumber - indicates whether to generate page numbersbAbsolute - indicates the font size is absolute or relativeiBrowser - indicates the browser is IE or NETSCAPE. The value of
parameter int browser must be one of the IE or NETSCAPE.bincdrilldownfile - indicates to generate the drilldown html files
in the file list.noMargin - indicates to generate the html files without page Margin.title - the title of the exported html file.
public boolean exportToDhtml(java.lang.String rstFileName,
java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin,
java.lang.String title,
int resolution,
int overflowType)
rstFileName - the result file name.htmlFileName - the HTML file name.bChartApplet - indicates whether the chart in html file is exported
as an applet.isMultiFile - indicates whether to export the html to
a file or to multiple files.bUsingTable - indicates whether to use html table format
when exporting html filesbHyperlink - indicates whether to generate a hyperlinkbPageNumber - indicates whether to generate page numbersbAbsolute - indicates the font size is absolute or relativeiBrowser - indicates the browser is IE or NETSCAPE. The value of
parameter int browser must be one of the IE or NETSCAPE.bincdrilldownfile - indicates to generate the drilldown html files
in the file list.noMargin - indicates to generate the html files without page Margin.title - the title of the exported html file.resolution - indicates resolution of the html files .overflowType - Indicates the html text overflow type
public boolean exportToDhtml(java.lang.String htmlFileName)
htmlFileName - the HTML file name.
public boolean exportToDhtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser)
htmlFileName - the HTML file name.bChartApplet - indicates whether the chart in html file is exported
as an applet.isMultiFile - indicates whether to export the html to
a file or to multiple files.bUsingTable - indicates whether to use html table format
when exporting html filesbHyperlink - indicates whether to generate a hyperlinkbPageNumber - indicates whether to generate page numbersbAbsolute - indicates the font size is absolute or relativeiBrowser - indicates the browser is IE or NETSCAPE. The value of
parameter int browser must be one of the IE or NETSCAPE.
public boolean exportToDhtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile)
htmlFileName - the HTML file name.bChartApplet - indicates whether the chart in html file is exported
as an applet.isMultiFile - indicates whether to export the html to
a file or to multiple files.bUsingTable - indicates whether to use html table format
when exporting html filesbHyperlink - indicates whether to generate a hyperlinkbPageNumber - indicates whether to generate page numbersbAbsolute - indicates the font size is absolute or relativeiBrowser - indicates the browser is IE or NETSCAPE. The value of
parameter int browser must be one of the IE or NETSCAPE.bincdrilldownfile - indicates the drilldown html files were included in file list
public boolean exportToDhtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin)
htmlFileName - the HTML file name.bChartApplet - indicates whether the chart in html file is exported
as an applet.isMultiFile - indicates whether to export the html to
a file or to multiple files.bUsingTable - indicates whether to use html table format
when exporting html filesbHyperlink - indicates whether to generate a hyperlinkbPageNumber - indicates whether to generate page numbersbAbsolute - indicates the font size is absolute or relativeiBrowser - indicates the browser is IE or NETSCAPE. The value ofbincdrilldownfile - indicates the drilldown html files were included in file listnoMargin - indicates to generate the html files without page margin.
public boolean exportToDhtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin,
int resolution)
htmlFileName - the HTML file name.bChartApplet - indicates whether the chart in html file is exported
as an applet.isMultiFile - indicates whether to export the html to
a file or to multiple files.bUsingTable - indicates whether to use html table format
when exporting html filesbHyperlink - indicates whether to generate a hyperlinkbPageNumber - indicates whether to generate page numbersbAbsolute - indicates the font size is absolute or relativeiBrowser - indicates the browser is IE or NETSCAPE. The value ofbincdrilldownfile - indicates the drilldown html files were included in file listnoMargin - indicates to generate the html files without page margin.
public boolean exportToDhtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin,
java.lang.String title)
htmlFileName - the HTML file name.bChartApplet - indicates whether the chart in html file is exported
as an applet.isMultiFile - indicates whether to export the html to
a file or to multiple files.bUsingTable - indicates whether to use html table format
when exporting html filesbHyperlink - indicates whether to generate a hyperlinkbPageNumber - indicates whether to generate page numbersbAbsolute - indicates the font size is absolute or relativeiBrowser - indicates the browser is IE or NETSCAPE. The value ofbincdrilldownfile - indicates the drilldown html files were included in file listnoMargin - indicates to generate the html files without page margin.title - the title of the exported html file.
public boolean exportToDhtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin,
java.lang.String title,
int resolution,
int overflowType)
htmlFileName - the HTML file name.bChartApplet - indicates whether the chart in html file is exported
as an applet.isMultiFile - indicates whether to export the html to
a file or to multiple files.bUsingTable - indicates whether to use html table format
when exporting html filesbHyperlink - indicates whether to generate a hyperlinkbPageNumber - indicates whether to generate page numbersbAbsolute - indicates the font size is absolute or relativeiBrowser - indicates the browser is IE or NETSCAPE. The value ofbincdrilldownfile - indicates the drilldown html files were included in file listnoMargin - indicates to generate the html files without page margin.title - the title of the exported html file.resolution - indicates resolution of the html files .overflowType - Indicates the html text overflow type
public boolean exportToPdf(java.lang.String rstFileName,
java.lang.String pdfFileName)
rstFileName - the result file name.pdfFileName - the PDF file name.
public boolean exportToPdf(java.lang.String pdfFileName)
exportToPdf in interface EngineExecuterpdfFileName - the PDF file name.
public boolean exportToPdf(java.io.OutputStream stream)
stream - the PDF OutputStream.
public boolean exportToPdf(java.lang.String pdfFileName,
boolean noMargin)
pdfFileName - the PDF file name.noMargin - indicates to generate the pdf file without page margin.
public boolean exportToPdf(java.lang.String rstFileName,
java.lang.String pdfFileName,
boolean noMargin)
rstFileName - the result file name.pdfFileName - the PDF file name.noMargin - indicates to generate the pdf file without page margin.
public boolean exportToPdf(java.lang.String pdfFileName,
boolean noMargin,
boolean isSimPrintMode)
pdfFileName - the PDF file name.noMargin - indicates to generate the pdf file without page margin.isSimPrintMode - indicates to generate the pdf file use simulated printing mode.
public boolean exportToPdf(java.lang.String rstFileName,
java.lang.String pdfFileName,
boolean noMargin,
boolean isSimPrintMode)
rstFileName - the result file name.pdfFileName - the PDF file name.noMargin - indicates to generate the pdf file without page margin.isSimPrintMode - indicates to generate the pdf file use simulated print mode.
public boolean exportToPdf(java.lang.String pdfFileName,
boolean noMargin,
boolean isSimPrintMode,
boolean isCompressImage)
pdfFileName - the PDF file name.noMargin - indicates to generate the pdf file without page margin.isSimPrintMode - indicates to generate the pdf file use simulated printing mode.isCompressImage - indicatess to generate the pdf file compress image.
public boolean exportToPdf(java.lang.String pdfFileName,
boolean noMargin,
boolean isSimPrintMode,
int isCompressImage,
boolean isTransparent)
pdfFileName - the PDF file name.noMargin - indicates to generate the pdf file without page margin.isSimPrintMode - indicates to generate the pdf file use simulated printing mode.isCompressImage - indicatess to generate the pdf file compress image.isTransparent - indicatess to transparent.
public boolean exportToPdf(java.lang.String pdfFileName,
boolean noMargin,
boolean isSimPrintMode,
int isCompressImage,
boolean isTransparent,
boolean bToc,
boolean bDrill)
pdfFileName - the PDF file name.noMargin - indicates to generate the pdf file without page margin.isSimPrintMode - indicates to generate the pdf file use simulated printing mode.isCompressImage - indicatess to generate the pdf file compress image.bToc - indicates to generate the pdf file with TOCbDrill - indicates to generate the pdf file with Drill Down
public boolean exportToPdf(java.lang.String pdfFileName,
boolean noMargin,
boolean isSimPrintMode,
int isCompressImage,
boolean isTransparent,
boolean bToc,
boolean bDrill,
java.lang.String password)
pdfFileName - the PDF file name.noMargin - indicates to generate the pdf file without page margin.isSimPrintMode - indicates to generate the pdf file use simulated printing mode.isCompressImage - indicatess to generate the pdf file compress image.bToc - indicates to generate the pdf file with TOCbDrill - indicates to generate the pdf file with Drill Downpassword - indicates to generate the pdf file with the password.
public boolean exportToPdf(java.io.OutputStream stream,
boolean noMargin,
int isCompressImage,
boolean isTransparent,
boolean bToc,
java.lang.String password,
int[] pages,
int[][] pageRange)
stream - the OutputStream.noMargin - indicates to generate the pdf file without page margin.isCompressImage - indicatess to generate the pdf file compress image.isTransparent - indicatess to transparent.bToc - indicates to generate the pdf file with TOCpassword - indicates to generate the pdf file with the password.
public boolean exportToPdf(java.lang.String rstFileName,
java.lang.String pdfFileName,
boolean noMargin,
boolean isSimPrintMode,
boolean isCompressImage)
rstFileName - the result file name.pdfFileName - the PDF file name.noMargin - indicates to generate the pdf file without page margin.isSimPrintMode - indicates to generate the pdf file use simulated print mode.isCompressImage - indicatess to generate the pdf file compress image.
public boolean exportToPdf(java.lang.String rstFileName,
java.lang.String pdfFileName,
boolean noMargin,
boolean isSimPrintMode,
int isCompressImage,
boolean isTransparent)
rstFileName - the result file name.pdfFileName - the PDF file name.noMargin - indicates to generate the pdf file without page margin.isSimPrintMode - indicates to generate the pdf file use simulated print mode.isCompressImage - indicatess the image compress rate to generate the pdf file.isTransparent - indicatess to generate the pdf file keep transparent gif image.
public boolean exportToPdf(java.lang.String rstFileName,
java.lang.String pdfFileName,
boolean noMargin,
boolean isSimPrintMode,
int isCompressImage,
boolean isTransparent,
boolean bToc,
boolean bDrill)
rstFileName - the result file name.pdfFileName - the PDF file name.noMargin - indicates to generate the pdf file without page margin.isSimPrintMode - indicates to generate the pdf file use simulated printing mode.isCompressImage - indicatess to generate the pdf file compress image.bToc - indicates to generate the pdf file with TOCbDrill - indicates to generate the pdf file with Drill Down
public boolean exportToPdf(java.lang.String rstFileName,
java.lang.String pdfFileName,
boolean noMargin,
boolean isSimPrintMode,
int isCompressImage,
boolean isTransparent,
boolean bToc,
boolean bDrill,
java.lang.String password)
rstFileName - the result file name.pdfFileName - the PDF file name.noMargin - indicates to generate the pdf file without page margin.isSimPrintMode - indicates to generate the pdf file use simulated printing mode.isCompressImage - indicatess to generate the pdf file compress image.bToc - indicates to generate the pdf file with TOCbDrill - indicates to generate the pdf file with Drill Downpassword - indicates to generate the pdf file with the password.
public boolean exportToPdf(java.lang.String filename,
PDFParameter parameter)
parameters - indicates to generate the pdf file with the all pdf parameters.
public boolean exportToPdf(java.lang.String rstFileName,
java.lang.String filename,
PDFParameter parameter)
rstFileName - the result file name.parameters - indicates to generate the pdf file with the all pdf parameters.
public boolean exportToText(java.lang.String rstFileName,
java.lang.String textFileName,
boolean isNormalText)
rstFileName - the result file name.textFileName - the TEXT file name.isNormalText - sets whether this text file is in the normal text format
or standard data format
the standard data format text file is the text file that each row of it represents each record in the report. It can be used as a text datasource to exchange data with other application
public boolean exportToText(java.lang.String rstFileName,
java.lang.String textFileName,
boolean isNormalText,
int udchWidth,
int udchHeight)
rstFileName - the result file name.textFileName - the TEXT file name.isNormalText - sets whether this text file is in the normal text format
or standard data format
the standard data format text file is the text file that each row of it represents each record in the report. It can be used as a text datasource to exchange data with other application.
udchWidth - the width for each unit of the width clearance between columns.udchHeight - the height for each unit of the height clearance between columns.
public boolean exportToText(java.lang.String rstFileName,
java.lang.String textFileName,
boolean isNormalText,
boolean isRepeat,
char delimiter)
rstFileName - the result file name.textFileName - the TEXT file name.isNormalText - sets whether this text file is in the normal text format
or standard data format
the standard data format text file is the text file that each row of it represents each record in the report. It can be used as a text datasource to exchange data with other application
isRepeat - indicates whether to repeat the same contents.delimiter - the delimiter used in the SDF(Standard Data Format) format
public boolean exportToText(java.lang.String rstFileName,
java.lang.String textFileName,
boolean isNormalText,
boolean isRepeat,
char delimiter,
int udchWidth,
int udchHeight)
rstFileName - the result file name.textFileName - the TEXT file name.isNormalText - sets whether this text file is in the normal text format
or standard data format
the standard data format text file is the text file that each row of it represents each record in the report. It can be used as a text datasource to exchange data with other application
isRepeat - indicates whether to repeat the same contents.delimiter - the delimiter used in the SDF(Standard Data Format) format.udchWidth - the width for each unit of the width clearance between columns.udchHeight - the height for each unit of the height clearance between columns.
public boolean exportToText(java.lang.String rstFileName,
java.lang.String textFileName,
boolean isNormalText,
boolean isRepeat,
char delimiter,
int udchWidth,
int udchHeight,
boolean compress,
int resolution)
rstFileName - the result file name.textFileName - the TEXT file name.isNormalText - sets whether this text file is in the normal text format
or standard data format
the standard data format text file is the text file that each row of it represents each record in the report. It can be used as a text datasource to exchange data with other application
isRepeat - indicates whether to repeat the same contents.delimiter - the delimiter used in the SDF(Standard Data Format) format.udchWidth - the width for each unit of the width clearance between columns.udchHeight - the height for each unit of the height clearance between columns.compress - remove empty lines or redundant delimiters in the exported text file.resolution - set resolution when exporting to text.
public boolean exportToText(java.lang.String rstFileName,
java.lang.String textFileName,
boolean isNormalText,
boolean isRepeat,
char delimiter,
int udchWidth,
int udchHeight,
boolean isQuoteMark,
boolean hasHeadFoot)
rstFileName - the result file name.textFileName - the TEXT file name.isNormalText - sets whether this text file is in the normal text format
or standard data format
the standard data format text file is the text file that each row of it represents each record in the report. It can be used as a text datasource to exchange data with other application
isRepeat - indicates whether to repeat the same contents.delimiter - the delimiter used in the SDF(Standard Data Format) format.udchWidth - the width for each unit of the width clearance between columns.udchHeight - the height for each unit of the height clearance between columns.compress - remove empty lines or redundant delimiters in the exported text file.resolution - define the resolution by which the character be convertedquoteMark - keep the quote character in standard format text
public boolean exportToText(java.lang.String rstFileName,
java.lang.String textFileName,
boolean isNormalText,
boolean isRepeat,
char delimiter,
int udchWidth,
int udchHeight,
boolean compress,
int resolution,
boolean quoteMark,
boolean hasHeadFoot)
rstFileName - the result file name.textFileName - the TEXT file name.isNormalText - sets whether this text file is in the normal text format
or standard data format
the standard data format text file is the text file that each row of it represents each record in the report. It can be used as a text datasource to exchange data with other application
isRepeat - indicates whether to repeat the same contents.delimiter - the delimiter used in the SDF(Standard Data Format) format.udchWidth - the width for each unit of the width clearance between columns.udchHeight - the height for each unit of the height clearance between columns.compress - remove empty lines or redundant delimiters in the exported text file.resolution - define the resolution by which the character be convertedquoteMark - keep the quote character in standard format text
public boolean exportToText(java.lang.String rstFileName,
java.lang.String textFileName,
boolean isNormalText,
boolean isRepeat,
char delimiter,
int udchWidth,
int udchHeight,
boolean compress,
int resolution,
boolean quoteMark,
boolean hasHeadFoot,
boolean forWindows)
rstFileName - the result file name.textFileName - the TEXT file name.isNormalText - sets whether this text file is in the normal text format
or standard data format
the standard data format text file is the text file that each row of it represents each record in the report. It can be used as a text datasource to exchange data with other application
isRepeat - indicates whether to repeat the same contents.delimiter - the delimiter used in the SDF(Standard Data Format) format.udchWidth - the width for each unit of the width clearance between columns.udchHeight - the height for each unit of the height clearance between columns.compress - remove empty lines or redundant delimiters in the exported text file.resolution - define the resolution by which the character be convertedquoteMark - keep the quote character in standard format textforWindows - to indicate the platform on which the text file will be accessed.
public boolean exportToText(java.lang.String rstFileName,
java.lang.String textFileName,
boolean isNormalText,
boolean isRepeat,
char delimiter,
int udchWidth,
int udchHeight,
boolean compress,
int resolution,
boolean quoteMark,
boolean hasHeadFoot,
boolean forWindows,
boolean ignoreDelimiter)
rstFileName - the result file name.textFileName - the TEXT file name.isNormalText - sets whether this text file is in the normal text format
or standard data format
the standard data format text file is the text file that each row of it represents each record in the report. It can be used as a text datasource to exchange data with other application
isRepeat - indicates whether to repeat the same contents.delimiter - the delimiter used in the SDF(Standard Data Format) format.udchWidth - the width for each unit of the width clearance between columns.udchHeight - the height for each unit of the height clearance between columns.compress - remove empty lines or redundant delimiters in the exported text file.resolution - define the resolution by which the character be convertedquoteMark - keep the quote character in standard format textignoreDelimiter - to indicate to ignore the delimiter.forWindows - to indicate the platform on which the text file will be accessed.
public boolean exportToText(java.lang.String textFileName,
boolean isNormalText)
textFileName - the TEXT file name.isNormalText - is to set whether this text file is normal text format
or standard data format
the standard data format text file is the text file that each row of it represents each record in the report. It can be used as a text datasource to exchange data with other application
public boolean exportToText(java.io.OutputStream stream,
boolean isNormalText)
stream - used as output parameter.isNormalText - is to set whether this text file is normal text format
or standard data format
the standard data format text file is the text file that each row of it represents each record in the report. It can be used as a text datasource to exchange data with other application
public boolean exportToText(java.lang.String textFileName,
boolean isNormalText,
int udchWidth,
int udchHeight)
textFileName - the TEXT file name.isNormalText - is to set whether this text file is normal text format
or standard data format
the standard data format text file is the text file that each row of it represents each record in the report. It can be used as a text datasource to exchange data with other application
udchWidth - the width for each unit of the width clearance between columns.udchHeight - the height for each unit of the height clearance between columns.
public boolean exportToText(java.lang.String textFileName,
boolean isNormalText,
boolean isRepeat,
char delimiter)
exportToText in interface EngineExecutertextFileName - the TEXT file name.isNormalText - is to set whether this text file is normal text format
or standard data format
the standard data format text file is the text file that each row of it represents each record in the report. It can be used as a text datasource to exchange data with other application
isRepeat - indicates whether to repeat the same contents.delimiter - delimiter used in SDF(Standard Data Format) format
public boolean exportToText(java.lang.String textFileName,
boolean isNormalText,
boolean isRepeat,
char delimiter,
int udchWidth,
int udchHeight)
textFileName - the TEXT file name.isNormalText - is to set whether this text file is normal text format
or standard data format
the standard data format text file is the text file that each row of it represents each record in the report. It can be used as a text datasource to exchange data with other application
isRepeat - indicates whether to repeat the same contents.delimiter - delimiter used in SDF(Standard Data Format) formatudchWidth - the width for each unit of the width clearance between columns.udchHeight - the height for each unit of the height clearance between columns.
public boolean exportToText(java.lang.String textFileName,
boolean isNormalText,
boolean isRepeat,
char delimiter,
int udchWidth,
int udchHeight,
boolean compress,
int resolution)
textFileName - the TEXT file name.isNormalText - is to set whether this text file is normal text format
or standard data format
the standard data format text file is the text file that each row of it represents each record in the report. It can be used as a text datasource to exchange data with other application
isRepeat - indicates whether to repeat the same contents.delimiter - delimiter used in SDF(Standard Data Format) formatudchWidth - the width for each unit of the width clearance between columns.udchHeight - the height for each unit of the height clearance between columns.compress - remove empty lines or redundant delimiters in the exported text file.
public boolean exportToText(java.lang.String textFileName,
boolean isNormalText,
boolean isRepeat,
char delimiter,
int udchWidth,
int udchHeight,
boolean compress,
int resolution,
boolean quoteMark,
boolean hasHeadFoot)
textFileName - the TEXT file name.isNormalText - is to set whether this text file is normal text format
or standard data format
the standard data format text file is the text file that each row of it represents each record in the report. It can be used as a text datasource to exchange data with other application
isRepeat - indicates whether to repeat the same contents.delimiter - delimiter used in SDF(Standard Data Format) formatudchWidth - the width for each unit of the width clearance between columns.udchHeight - the height for each unit of the height clearance between columns.compress - remove empty lines or redundant delimiters in the exported text file.resolution - define the resolution by which the character be convertedquoteMark - keep the quote character in standard format text
public boolean exportToText(java.lang.String textFileName,
boolean isNormalText,
boolean isRepeat,
char delimiter,
int udchWidth,
int udchHeight,
boolean compress,
int resolution,
boolean quoteMark,
boolean hasHeadFoot,
boolean forWindows)
textFileName - the TEXT file name.isNormalText - is to set whether this text file is normal text format
or standard data format
the standard data format text file is the text file that each row of it represents each record in the report. It can be used as a text datasource to exchange data with other application
isRepeat - indicates whether to repeat the same contents.delimiter - delimiter used in SDF(Standard Data Format) formatudchWidth - the width for each unit of the width clearance between columns.udchHeight - the height for each unit of the height clearance between columns.compress - remove empty lines or redundant delimiters in the exported text file.resolution - define the resolution by which the character be convertedquoteMark - keep the quote character in standard format textforWindows - to indicate the platform on which the text file will be accessed.
public boolean exportToText(java.lang.String textFileName,
boolean isNormalText,
boolean isRepeat,
char delimiter,
int udchWidth,
int udchHeight,
boolean compress,
int resolution,
boolean quoteMark,
boolean hasHeadFoot,
boolean forWindows,
boolean ignoreDelimiter)
textFileName - the TEXT file name.isNormalText - is to set whether this text file is normal text format
or standard data format
the standard data format text file is the text file that each row of it represents each record in the report. It can be used as a text datasource to exchange data with other application
isRepeat - indicates whether to repeat the same contents.delimiter - delimiter used in SDF(Standard Data Format) formatudchWidth - the width for each unit of the width clearance between columns.udchHeight - the height for each unit of the height clearance between columns.compress - remove empty lines or redundant delimiters in the exported text file.resolution - define the resolution by which the character be convertedquoteMark - keep the quote character in standard format textforWindows - to indicate the platform on which the text file will be accessed.ignoreDelimiter - to indicate to ignore the delimiter.
public boolean exportToText(java.io.OutputStream stream,
boolean isNormalText,
boolean isRepeat,
char delimiter,
int udchWidth,
int udchHeight,
boolean compress,
int resolution,
boolean quoteMark,
boolean hasHeadFoot,
boolean forWindows)
stream - used as output parameter.isNormalText - is to set whether this text file is normal text format
or standard data format
the standard data format text file is the text file that each row of it represents each record in the report. It can be used as a text datasource to exchange data with other application
isRepeat - indicates whether to repeat the same contents.delimiter - delimiter used in SDF(Standard Data Format) formatudchWidth - the width for each unit of the width clearance between columns.udchHeight - the height for each unit of the height clearance between columns.compress - remove empty lines or redundant delimiters in the exported text file.resolution - define the resolution by which the character be convertedquoteMark - keep the quote character in standard format textforWindows - to indicate the platform on which the text file will be accessed.
public boolean exportToPS(java.lang.String rstFileName,
java.lang.String psFileName,
boolean noMargin)
rstFileName - the result file name.psFileName - the PS file name.noMargin - ,indicate to export to PS file without page margin.
public boolean exportToPS(java.lang.String rstFileName,
java.lang.String psFileName)
rstFileName - the result file name.psFileName - the PS file name.
public boolean exportToPS(java.lang.String psFileName)
psFileName - the PS file name.
public boolean exportToPS(java.io.OutputStream stream)
stream - used as output parameter.
public boolean exportToPS(java.lang.String psFileName,
boolean noMargin)
psFileName - the PS file name.noMargin - ,indicate to export to PS file without page margin.
public boolean exportToPS(java.io.OutputStream stream,
boolean noMargin)
stream - used as output parameter.noMargin - ,indicate to export to PS stream without page margin.
public boolean exportToRtf(java.lang.String rstFileName,
java.lang.String rtfFileName)
rstFileName - the result file name.rtfFileName - the Rtf file name.
public boolean exportToRtf(java.lang.String rtfFileName)
rtfFileName - the Rtf file name.
public boolean exportToRtf(java.io.OutputStream stream)
rtfFileName - the Rtf file name.
public boolean exportToRtf(java.lang.String rtfFileName,
boolean noMargin)
rtfFileName - the Rtf file name.noMargin - ,indicate to export to Rtf file without page margin.
public boolean exportToRtf(java.io.OutputStream stream,
boolean noMargin)
rtfFileName - the Rtf file name.noMargin - ,indicate to export to Rtf file without page margin.
public boolean exportToRtf(java.lang.String rstFileName,
java.lang.String rtfFileName,
boolean noMargin)
rstFileName - the result file name.rtfFileName - the Rtf file name.noMargin - ,indicate to export to Rtf file without page margin.
public java.util.Vector getAllRtfFile()
public boolean exportToXML(java.lang.String xmlFileName,
boolean isOnlyData,
java.lang.String existXSFile)
throws java.lang.ClassNotFoundException
xmlFileName - the XML file name.isOnlyData - , indicates that only database column information is exported to the XML file,
otherwise all report details, including all the properties will be exported.existedSchemaFile - , specify the schema file which is based when export to XML file, if set to null, create the schema file
java.lang.ClassNotFoundException
public boolean exportToXML(java.lang.String xmlFileName,
boolean isMultiFile,
boolean isOnlyData)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundExceptionexportToXML(String, boolean, String)
public boolean exportToXML(java.lang.String rstFileName,
java.lang.String xmlFileName,
boolean isOnlyData,
java.lang.String existedSchemaFile)
throws java.lang.ClassNotFoundException
rstFileName - the result file name.xmlFileName - the XML file name.isOnlyData - , indicates that only database column information is exported to the XML file,
otherwise all report details, including all the properties will be exported.existedSchemaFile - , specify the schema file which is based when export to XML file, if set to null, create the schema file
java.lang.ClassNotFoundException
public boolean exportToXML(java.lang.String rstFileName,
java.lang.String xmlFileName,
boolean isMultiFile,
boolean isOnlyData)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundExceptionexportToXML(String, String, boolean)
public boolean exportToXML(ExportInfo info,
XmlParameter param)
throws java.lang.ClassNotFoundException
info - The report information for export.param - The xml file information.
java.lang.ClassNotFoundExceptionpublic java.util.Vector getAllXMLFile()
public boolean exportToXMLObject(java.lang.String rstFileName,
boolean isOnlyData,
java.lang.String existedSchemaFile)
rstFileName - the result file name.isOnlyData - , indicates that only database column information is exported to the XML file,
otherwise all report details, including all the properties will be exported.existedSchemaFile - , specify the schema file which is based when export to XML file, if set to null, create the schema file
public boolean exportToXMLObject(boolean isOnlyData,
java.lang.String existedSchemaFile)
isOnlyData - , indicates that only database column information is exported to the XML file,
otherwise all report details, including all the properties will be exported.existedSchemaFile - , specify the schema file which is based when export to XML file, if set to null, create the schema file
public boolean xmlHasNextPage()
public org.w3c.dom.Element publishXMLNextPage()
public boolean exportToXls(java.lang.String rstFileName,
java.lang.String xlsFileName,
int isWordWrap,
boolean isBiff8,
int param,
boolean shareLabel)
rstFileName - the result file name.xlsFileName - the Xls file name.isWordWrap - indicates whether wordwrap the field, the value must to be KEEPORIGIN, NOWORDWRAP or WORDWRAPALLisBiff8 - indicates whether in Excel2000 formatparam - whether export shape to excel or not
public boolean exportToXls(java.lang.String rstFileName,
java.lang.String xlsFileName,
int isWordWrap,
boolean isBiff8,
int param)
rstFileName - the result file name.xlsFileName - the Xls file name.isWordWrap - indicates whether wordwrap the field, the value must to be KEEPORIGIN, NOWORDWRAP or WORDWRAPALLisBiff8 - indicates whether in Excel2000 formatparam - whether export shape to excel or not
public boolean exportToXls(java.lang.String rstFileName,
java.lang.String xlsFileName,
int isWordWrap,
boolean isBiff8)
rstFileName - the result file name.xlsFileName - the Xls file name.isWordWrap - indicates whether wordwrap the field, the value must to be KEEPORIGIN, NOWORDWRAP or WORDWRAPALLisBiff8 - indicates whether in Excel2000 format
public boolean exportToXls(java.lang.String rstFileName,
java.lang.String xlsFileName,
int isWordWrap)
rstFileName - the result file name.xlsFileName - the Xls file name.isWordWrap - indicates whether wordwrap the field, the value must to be KEEPORIGIN, NOWORDWRAP or WORDWRAPALL
public boolean exportToXls(java.lang.String rstFileName,
java.lang.String xlsFileName)
rstFileName - the result file name.xlsFileName - the Xls file name.
public boolean exportToXls(java.lang.String xlsFileName)
xlsFileName - the Xls file name.
public boolean exportToXls(java.io.OutputStream os)
public boolean exportToXls(java.lang.String xlsFileName,
int isWordWrap)
xlsFileName - the Xls file name.isWordWrap - indicates whether wordwrap the field, the value must to be KEEPORIGIN, NOWORDWRAP or WORDWRAPALL
public boolean exportToXls(java.lang.String xlsFileName,
int isWordWrap,
boolean isBiff8)
xlsFileName - the Xls file name.isWordWrap - indicates whether wordwrap the field, the value must to be KEEPORIGIN, NOWORDWRAP or WORDWRAPALLisBiff8 - indicates whether export in Excel2000 format
public boolean exportToXls(java.lang.String xlsFileName,
int isWordWrap,
boolean isBiff8,
int param)
xlsFileName - the Xls file name.isWordWrap - indicates whether wordwrap the field, the value must to be KEEPORIGIN, NOWORDWRAP or WORDWRAPALLisBiff8 - indicates whether export in Excel2000 formatparam - Indicates whether export geometry object to excel file
public boolean exportToXls(java.lang.String xlsFileName,
int isWordWrap,
boolean isBiff8,
int param,
boolean shareLabel)
xlsFileName - the Xls file name.isWordWrap - indicates whether wordwrap the field, the value must to be KEEPORIGIN, NOWORDWRAP or WORDWRAPALLisBiff8 - indicates whether export in Excel2000 format
public boolean exportToXls(java.io.OutputStream os,
int isWordWrap,
int param,
boolean shareLabel)
os - the output excel stream.isWordWrap - indicates whether wordwrap the field, the value must to be KEEPORIGIN, NOWORDWRAP or WORDWRAPALLisBiff8 - indicates whether export in Excel2000 format
public java.util.Vector getAllXlsFile()
public void configMailServer(java.lang.String SMTPServerIP,
java.lang.String MyMailAddress,
int SMTPServerPort)
SMTPServerIP - the mail server IP addressMyMailAddress - sender's mail addressSMTPServerPort - the mail server port
public void setAuthencatorMessage(java.lang.String username,
java.lang.String password,
java.lang.String mailAddress)
username - password - mailAddresss - NOTICE: please do not invoke this method if the SMTP needn't authentication
public void exportToMail(java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat)
throws java.lang.Exception
rcpt - the address of the receiptcc - copy to addressbcc - blind copy to addresssubject - the mail subjectcomments - any text string for memoirecompress - indicates whether use java compress utilities to compress
mail contentsrptformat - available choice are : rst file mail, html mail,
html files mail, pdf file mail, plain text mail and SDF format text mail
java.lang.Exception
public void exportToMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat)
throws java.lang.Exception
java.lang.Exception
public void exportToMail(java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin)
throws java.lang.Exception
rcpt - the address of the receiptcc - copy to addressbcc - blind copy to addresssubject - the mail subjectcomments - any text string for memoirecompress - indicates whether use java compress utilities to compress
mail contentsrptformat - available choice are : rst file mail, html mail,
html files mail, pdf file mail, plain text mail and SDF format text mailnoMargin - indicate that export file without page Margin
java.lang.Exception
public void exportToMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin)
throws java.lang.Exception
java.lang.Exception
public void exportToMail(java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight)
throws java.lang.Exception
rcpt - the address of the receiptcc - copy to addressbcc - blind copy to addresssubject - the mail subjectcomments - any text string for memoirecompress - indicates whether use java compress utilities to compress
mail contentsrptformat - available choice are : rst file mail, html mail,
html files mail, pdf file mail, plain text mail and SDF format text mailnoMargin - indicate that export file without page Marginudwidth - and udheight are user defined char width and height used in plain text format
java.lang.Exception
public void exportToMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight)
throws java.lang.Exception
java.lang.Exception
public void exportToMail(java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight,
boolean isSimPrintMode)
throws java.lang.Exception
rcpt - the address of the receiptcc - copy to addressbcc - blind copy to addresssubject - the mail subjectcomments - any text string for memoirecompress - indicates whether use java compress utilities to compress
mail contentsrptformat - available choice are : rst file mail, html mail,
html files mail, pdf file mail, plain text mail and SDF format text mailnoMargin - indicate that export file without page Marginudwidth - and udheight are user defined char width and height used in plain text formatisSimPrintMode - indicates to generate the pdf file use simulated print mode.
java.lang.Exception
public void exportToMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight,
boolean isSimPrintMode)
throws java.lang.Exception
java.lang.Exception
public void exportToMail(java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight,
boolean isSimPrintMode,
int isCompressImage)
throws java.lang.Exception
rcpt - the address of the receiptcc - copy to addressbcc - blind copy to addresssubject - the mail subjectcomments - any text string for memoirecompress - indicates whether use java compress utilities to compress
mail contentsrptformat - available choice are : rst file mail, html mail,
html files mail, pdf file mail, plain text mail and SDF format text mailnoMargin - indicate that export file without page Marginudwidth - and udheight are user defined char width and height used in plain text formatisSimPrintMode - indicates to generate the pdf file use simulated print mode.isCompressImage - indicatess to generate the pdf file compress image.
java.lang.Exception
public void exportToMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight,
boolean isSimPrintMode,
int isCompressImage)
throws java.lang.Exception
java.lang.Exception
public void exportToMail(java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight,
boolean isSimPrintMode,
int isCompressImage,
boolean isMutibleFileXML,
boolean isDataOnlyXML,
boolean hasHeadFoot)
throws java.lang.Exception
java.lang.Exception
public void exportToMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight,
boolean isSimPrintMode,
int isCompressImage,
boolean isDataOnlyXML,
java.lang.String xsdFile,
boolean hasHeadFoot)
throws java.lang.Exception
java.lang.Exception
public void exportToMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight,
boolean isSimPrintMode,
int isCompressImage,
boolean isDataOnlyXML,
java.lang.String xsdFile,
boolean hasHeadFoot,
boolean isGifTrans)
throws java.lang.Exception
java.lang.Exception
public void exportToMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight,
boolean isSimPrintMode,
int isCompressImage,
boolean isDataOnlyXML,
java.lang.String xsdFile,
boolean hasHeadFoot,
boolean isGifTrans,
boolean bTxtCompress)
throws java.lang.Exception
java.lang.Exception
public void exportToMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight,
boolean isSimPrintMode,
int isCompressImage,
boolean isDataOnlyXML,
java.lang.String xsdFile,
boolean hasHeadFoot,
boolean isGifTrans,
boolean bTxtCompress,
boolean isTable)
throws java.lang.Exception
java.lang.Exception
public void exportToMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight,
boolean isSimPrintMode,
int isCompressImage,
boolean isDataOnlyXML,
java.lang.String xsdFile,
boolean hasHeadFoot,
boolean isGifTrans,
boolean bTxtCompress,
boolean isTable,
int isWordWrap)
throws java.lang.Exception
java.lang.Exception
public void exportToMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight,
boolean isSimPrintMode,
int isCompressImage,
boolean isDataOnlyXML,
java.lang.String xsdFile,
boolean hasHeadFoot,
boolean isGifTrans,
boolean bTxtCompress,
boolean isTable,
int isWordWrap,
boolean isBiff8)
throws java.lang.Exception
java.lang.Exception
public void exportToMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight,
boolean isSimPrintMode,
int isCompressImage,
boolean isDataOnlyXML,
java.lang.String xsdFile,
boolean hasHeadFoot,
boolean isGifTrans,
boolean bTxtCompress,
boolean isTable,
int isWordWrap,
boolean isBiff8,
int param)
throws java.lang.Exception
java.lang.Exception
public void exportToMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight,
boolean isSimPrintMode,
int isCompressImage,
boolean isDataOnlyXML,
java.lang.String xsdFile,
boolean hasHeadFoot,
boolean isGifTrans,
boolean bTxtCompress,
boolean isTable,
int isWordWrap,
boolean isBiff8,
int param,
boolean bToc,
boolean bDrill)
throws java.lang.Exception
rcpt - the address of the receiptcc - copy to addressbcc - blind copy to addresssubject - the mail subjectcomments - any text string for memoirecompress - indicates whether use java compress utilities to compress
mail contentsrptformat - available choice are : rst file mail, html mail,
html files mail, pdf file mail, plain text mail and SDF format text mailnoMargin - indicate that export file without page Marginudwidth - and udheight are user defined char width and height used in plain text formatisSimPrintMode - indicates to generate the pdf file use simulated print mode.isCompressImage - indicates to generate the pdf file compress image.bToc - indicates to generate the pdf file with TOCbDrill - indicates to generate the pdf file with Drill Downparam - indicates to generate the excel file with geometry object
java.lang.Exception
public void exportToMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight,
boolean isSimPrintMode,
int isCompressImage,
boolean isDataOnlyXML,
java.lang.String xsdFile,
boolean hasHeadFoot,
boolean isGifTrans,
boolean bTxtCompress,
boolean isTable,
int isWordWrap,
boolean isBiff8,
boolean bToc,
boolean bDrill,
java.lang.String encoding)
throws java.lang.Exception
java.lang.Exception
public void exportToMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight,
boolean isSimPrintMode,
int isCompressImage,
boolean isDataOnlyXML,
java.lang.String xsdFile,
boolean hasHeadFoot,
boolean isGifTrans,
boolean bTxtCompress,
boolean isTable,
int isWordWrap,
boolean isBiff8,
int param,
boolean bToc,
boolean bDrill,
java.lang.String encoding)
throws java.lang.Exception
java.lang.Exception
public void exportToMail(java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
boolean isDataOnly,
java.lang.String xsdFile)
throws java.lang.Exception
rcpt - the address of the receiptcc - copy to addressbcc - blind copy to addresssubject - the mail subjectcomments - any text string for memoirecompress - indicates whether use java compress utilities to compressisOnlyData - , indicate only database column information to XML file, else all the
detailed information of the report, including all the property value of each report object will be exported.xsdFile, - indicate base the xsd File output XML.
java.lang.Exception
public void exportToMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
boolean isDataOnly,
java.lang.String xsdFile)
throws java.lang.Exception
java.lang.Exception
public void exportToMail(MailInformation info)
throws java.lang.Exception
java.lang.Exception
public void exportToMail(ExportInfo exportInfo,
MailInformation info)
throws java.lang.Exception
java.lang.Exception
public void sendNormalMail(java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
java.util.Vector additionfiles)
throws java.lang.Exception
rcpt - receipt addresscc - copy to addressbcc - blind copy to addresssubject - mail subjectcomments - any text string for memoirecompress - indicates whether to use java compress utilities to compress
the mail contentsadditionfiles - addition file attached to the mail other than
report results, if addition file is null, it means no files attached
to the mail.
java.lang.Exception
public void sendNormalMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
java.util.Vector additionfiles)
throws java.lang.Exception
java.lang.Exceptionpublic void setNamedWherePortion(java.lang.String name)
public void setNamedWherePortion(java.lang.String dataSourceName,
java.lang.String queryName,
java.lang.String name)
public void setWherePortion(java.lang.String where)
public void setWherePortion(java.lang.String dataSourceName,
java.lang.String queryName,
java.lang.String where)
public boolean saveWherePortion(java.lang.String strName,
java.lang.String strQueryName,
java.lang.String strSQL)
strName, - the name of the where portionstrQueryName, - the name of the query the where portion is setstrSQL, - the where portion statement
public boolean saveWherePortion(java.lang.String strName,
java.lang.String dataSourceName,
java.lang.String strQueryName,
java.lang.String strSQL)
strName, - the name of the where portiondataSourceName, - the name of the datasource the where portion is setstrQueryName, - the name of the query the where portion is setstrSQL, - the where portion statement
public boolean saveWherePortion(java.lang.String strName,
java.lang.String strQueryName,
java.util.Vector vecGroups)
strName, - the name of where portion.strQueryName, - the name of the query the where portion is set.vecGroups, - the where portion structure.
public boolean saveWherePortion(java.lang.String strName,
java.lang.String dataSourceName,
java.lang.String strQueryName,
java.util.Vector vecGroups)
strName, - the name of where portion.dataSourceName, - the name of the datasource the where portion is set.strQueryName, - the name of the query the where portion is set.vecGroups, - the where portion structure.
public boolean saveWherePortion(java.lang.String strName,
java.lang.String strSQL)
strName, - the name of the where portion.strSQL, - the where portion statement.
public boolean saveWherePortion(java.lang.String strName,
java.util.Vector vecGroups)
strName, - the name of where portion.vecGroups, - the where portion structure.
public boolean modifyWherePortion(java.lang.String strName,
java.lang.String strSQL)
strName, - the name of where portion.strSQL, - the where portion statement.
public boolean modifyWherePortion(java.lang.String strName,
java.util.Vector vecGroups)
strName, - the name of where portion.vecGroups, - the where portion structure.
public boolean deleteWherePortion(java.lang.String strName)
strName, - the name of the where portion.
public boolean deleteWherePortion(java.lang.String strName,
java.lang.String sourceName)
strName, - the name of the where portion.
public java.util.Enumeration getAvailableWherePortions(java.lang.String datasourceName,
java.lang.String queryName)
public java.util.Enumeration getAvailableWherePortions()
public java.util.Enumeration getAvailableQueryFields()
public java.lang.String getWherePortionsSQL(java.lang.String nameOfWherePortion)
nameOfWherePortion, - the name of the where portion.
public java.lang.String getWherePortionsSQL(java.lang.String nameOfWherePortion,
java.lang.String sourceName)
nameOfWherePortion, - the name of the where portion.sourceName, - the name of the data source.
public boolean saveCatalog()
public boolean addFileQuery(java.lang.String strName,
java.io.File flPath)
strName, - the name of the file query.flPath, - the sql file.
public boolean addFileQuery(java.lang.String strName,
java.io.File flPath,
java.lang.String sourceName)
strName, - the name of the file query.flPath, - the sql file.sourceName, - the name of the data source.
public java.lang.String getSQL()
public void modifyUserInfo(java.lang.String strUserName,
java.lang.String strPassword)
public void modifyUserInfo(java.lang.String strUserName,
java.lang.String strPassword,
java.lang.String dataSourceName)
public void setCatalogBean(JRCatalog catalogBean)
catalogBean - is an instance of the Catalog.
public void setConnection(java.lang.String strURL,
java.lang.String strUID,
java.lang.String strPSWD,
java.lang.String strJdbcDriver)
strURL, - the URL of the database.strUID, - the user id for the JDBC driver.strPSWD, - the password for the JDBC driver.strJdbcDriver, - the JdbcDriver.
public void setConnection(java.lang.String strUID,
java.lang.String strPSWD)
public void setConnection(java.lang.String strURL,
java.lang.String strUID,
java.lang.String strPSWD,
java.lang.String strJdbcDriver,
boolean fetchSupportInfo)
strURL, - the URL of the database.strUID, - the user id for the JDBC driver.strPSWD, - the password for the JDBC driver.strJdbcDriver, - the JdbcDriver.fetchSupportInfo, - Set true to get the user support information.
public void setConnection(java.lang.String dataSourceName,
java.sql.Connection userDbConnection)
dataSourceName - the specified database name.userDbConnection - the user provided connection.
public void setConnection(java.lang.String dataSourceName,
java.sql.Connection userDbConnection,
boolean fetchSupportInfo)
dataSourceName - the specified database name.userDbConnection - the user provided connection.fetchSupportInfo, - Set true to get the user support information. This method will only work when the user has set the connection object or url.
public void setConnection(java.lang.String dataSourceName,
java.lang.String strUID,
java.lang.String strPSWD)
dataSourceName - the specified database name.strUID - the user id for the JDBC driver.strPSWD - the password for the JDBC driver.
public void setConnection(java.lang.String dataSourceName,
java.lang.String strURL,
java.lang.String strUID,
java.lang.String strPSWD,
java.lang.String strJdbcDriver)
dataSourceName - the specified database name.strUID - the user id for the JDBC driver.strPSWD - the password for the JDBC driver.strURL - the URL of the database.strJdbcDriver - the JdbcDriver class name.
public void setConnection(java.lang.String dataSourceName,
java.lang.String strURL,
java.lang.String strUID,
java.lang.String strPSWD,
java.lang.String strJdbcDriver,
boolean fetchSupportInfo)
dataSourceName - the specified database name.strUID - the user id for the JDBC driver.strPSWD - the password for the JDBC driver.strURL - the URL of the database.strJdbcDriver - the JdbcDriver class name.fetchSupportInfo, - Set true to get the user support information.public void setConnection(java.sql.Connection userDbConnection)
userDbConnection, - the JDBC Connection object created by the user. Users should close it by themselves.
public void setConnection(java.sql.Connection userDbConnection,
boolean fetchSupportInfo)
userDbConnection, - the JDBC Connection object created by the user. Users should close it by themselves.fetchSupportInfo, - Set true to get the user support information. This method will only work when the user has set the connection object or url.public void setFetchSupportInfo(boolean fetchSupportInfo)
fetchSupportInfo, - a boolean value.public void setUserResultSet(java.sql.ResultSet userResultSet)
userResultSet, - the JDBC ResultSet object created by the user. Users should release it by themselves.
public java.util.Vector getDetailsFields()
throws java.lang.Exception
java.lang.Exceptionpublic void setUserName(java.lang.String name)
name - the user name used for report Security Contextpublic void setSecurityContext(SecurityContext sc)
securityContext - the Security Context used for reportpublic java.lang.String getVersion()
public static java.util.Vector getAllPrinters(java.lang.String reportHome)
public static java.util.Vector getAllPrinters()
public int getRecordLength()
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String getJoinCondition()
public java.lang.String getWhereCondition()
public boolean exportToFax(ExportInfo info,
java.lang.String portStr,
java.lang.String initStr,
int iDialing,
int iFlowControl,
java.lang.String flowCommand,
int iClass,
int txtTimeOut,
int txtRetries,
boolean q_best,
boolean q_normal,
boolean q_fast,
boolean isAddCover,
java.lang.String faxnum,
java.lang.String from,
java.lang.String to,
java.lang.String company,
java.lang.String phone,
java.lang.String date,
java.lang.String re,
java.lang.String comments,
boolean urgent,
boolean review,
boolean comment,
boolean reply)
throws java.lang.Exception
portStr - is the port name.Such as COM1..initStr - is the initialize string of modem.iDialing - is dialing mode(tone or pulse)iFlowControl - is flow control mode of modem.iFlowCommand - is flow command of modem.iClass - is fax class.txtTimeOut - is to set how long will fax wait for response of destination.txtRetries - is to set how many times our application will refax to destination if there is busy.q_best,q_normal,q_fast - is the quality of fax image.isAddCover - is whether add cover before fax report.faxnum - is fax phone.from - is sender would be shown in cover.to - is receiver.company - is comapny name would be shown in cover.phone - is phone number would be shown in coverre - is subject.comments - is text.urgent,review,comment,reply - is remark of this fax would be shown in cover.
java.lang.Exception
public boolean exportToFax(java.lang.String portStr,
java.lang.String initStr,
int iDialing,
int iFlowControl,
java.lang.String flowCommand,
int iClass,
int txtTimeOut,
int txtRetries,
boolean q_best,
boolean q_normal,
boolean q_fast,
boolean isAddCover,
java.lang.String faxnum,
java.lang.String from,
java.lang.String to,
java.lang.String company,
java.lang.String phone,
java.lang.String date,
java.lang.String re,
java.lang.String comments,
boolean urgent,
boolean review,
boolean comment,
boolean reply)
throws java.lang.Exception
info - The report information for export.portStr - is the port name.Such as COM1..initStr - is the initialize string of modem.iDialing - is dialing mode(tone or pulse)iFlowControl - is flow control mode of modem.iFlowCommand - is flow command of modem.iClass - is fax class.txtTimeOut - is to set how long will fax wait for response of destination.txtRetries - is to set how many times our application will refax to destination if there is busy.q_best,q_normal,q_fast - is the quality of fax image.isAddCover - is whether add cover before fax report.faxnum - is fax phone.from - is sender would be shown in cover.to - is receiver.company - is comapny name would be shown in cover.phone - is phone number would be shown in coverre - is subject.comments - is text.urgent,review,comment,reply - is remark of this fax would be shown in cover.
java.lang.Exception
public boolean exportToFax(java.lang.String portStr,
java.lang.String initStr,
int iDialing,
int iFlowControl,
java.lang.String flowCommand,
int iClass,
int txtTimeOut,
int txtRetries,
boolean q_best,
boolean q_normal,
boolean q_fast,
java.lang.String faxnum)
throws java.lang.Exception
portStr - is the port name.Such as COM1..initStr - is the initialize string of modem.iDialing - is dialing mode(tone or pulse)iFlowControl - is flow control mode of modem.iFlowCommand - is flow command of modem.iClass - is fax class.txtTimeOut - is to set how long will fax wait for response of destination.txtRetries - is to set how many times our application will refax to destination if there is busy.q_best,q_normal,q_fast - is the quality of fax image.isAddCover - is whether add cover before fax report.faxnum - is fax phone.
java.lang.Exception
public boolean exportToFaxServer(ExportInfo info,
java.lang.String className,
JRFaxServerInfo faxinfo,
JRCoverInfo coverinfo)
throws JRFaxServerException
JRFaxServerException
public boolean exportToText(ExportInfo info,
TextParameter param)
info - The report information for export.param - The text file information.
public boolean exportToPS(ExportInfo info,
PSParameter param)
info - The report information for export.param - The postscript file information.
public boolean exportToHtml(ExportInfo info,
HtmlParameter param)
info - The report information for export.param - The HTML file information.
public boolean exportToRtf(ExportInfo info,
RtfParameter param)
info - The report information for export.param - The RTF file information.
public Communicator getCommunicator(java.lang.String rptName,
java.lang.String viewName,
boolean security)
public java.util.Vector getCurrReportParams()
public static java.lang.String[] getAllDataSource(java.lang.String rptSetName,
int rptStatus)
rptSetName - report set file name contains full path.rptStatus - specifies which status report used datasource would be included.
public static java.lang.String[] getAllDataSource(java.lang.String catName,
java.lang.String rptSetName,
int rptStatus)
rptSetName - report set file name contains full path.rptStatus - specifies which status report used datasource would be included.
public java.lang.String[] getAllDataSource(int rptStatus)
rptStatus - specifies which status report used datasource would be included.
public static java.lang.String[] getAllDataSource(java.lang.String catName)
catName - catalog file name contains full path.
public java.lang.Throwable getThreadError()
public void refreshReport(java.lang.String rptName)
rptName - name of report to refresh .public void runAllReport()
public void runCurrentReport()
public void setRSDQuickViewMode(boolean isRSDQuickView)
isRSDQuickView - Indicates the status of JReport DHTML quick-view mode.
If it is true, JReport DHTML would try to run report in quickly mode, otherwise JReport DHTML would run report normally.public boolean getIsRSDQuickViewMode()
public void runReport(java.lang.String rsdFilename)
rsdFilename - The full path of the JReport RSD file.public void runReport()
public void runReport(java.util.Vector vReportName)
vReportName - indicates which reports in the report set will be run.
public void runReport(java.lang.String[] rptNames,
java.util.Vector[] viewNames)
public boolean exportToPDF(ExportInfo info,
PDFParameter param)
info - The report information for export.param - The PDF file information.
public boolean exportToXls(ExportInfo info,
ExcelParameter param)
info - The report information for export.param - The Excel file information.
public static java.lang.String[] getUserInfo(java.lang.String catName,
java.lang.String dataSourceName)
catName - catalog file name containing full path.dataSourceName - specifies data source
public static java.lang.String[] getUserInfoByReport(java.lang.String reportName,
java.lang.String dataSourceName)
reportName - self-contained report template file name containing full path.dataSourceName - specifies data source
public static java.util.Vector getReportsOfReportSet(java.lang.String reportSetFileName)
throws ReadFailureException
reportSetFileName - indicates report set file name containing full path.
ReadFailureException
public static java.util.Vector getReportsOfReportSet(java.lang.String catName,
java.lang.String reportSetFileName)
throws ReadFailureException
reportSetFileName - indicates report set file name containing full path.
ReadFailureException
public java.util.Vector getReportsOfReportSet()
throws ReadFailureException
ReadFailureExceptionpublic java.util.Vector getReportsOfResult(java.lang.String rstFileName)
rstFileName, - the JReport rst file Name
public void printReportJDK14(boolean bInteractive,
boolean bInBackground,
JReportPrintListener jreportprintlistener,
java.lang.String jobName,
java.util.Vector attributeInfo,
java.util.Vector customMedias,
java.lang.String printer)
throws NoSuchPrintAttributeException
bInteractive - a boolean value, if you set it to true,present a print setup dialog to the user for changing the properties of the print job.
Otherwise the print setup dialog will not show up.bInBackground - a boolean value, if you set it to false,
show the printing progress dialog with printing progress bar in it.jreportprintlistener - is the listener of print.
It is a interface which contains two methods that printStart() and printEnd().
This interface is useful, when you want to get the print status -- start or end, for example. Otherwise, you can set it to null.jobName - specify print job name.attributeInfo - is a vector which elements are string.
Each String has defined in interface PrintConfig.
For example,you can implement PrintConfig and call its fields like this:
attributeInfo.add(TRAY_MANUAL);
attributeInfo.add(ORIENTATION_PORTRAIT);customMedias - is a vector whose elements are some instance of CustomMedia.
Until now,JReport provides the following CustomMedia: CustomMediaCopies,CustomMediaMargin,CustomMediaTray.
CustomMediaCopies indicates printed copies.
CustomMediaMargin indicates page margin when printing.You may create an instance of CustomMediaMargin which includes four values representing left, right, top and bottom margin.
CustomMediaTray indicates special tray which is not standard tray defined in java.
If want to specify a special tray ,he must specify a printer name.Otherwise there will find this tray in default printer.If the specify printer has not such a tray,there would throw a NoSuchPrintAttributeException.
If needed,you may get all media tray's names in a special printer by call getAllMediaTray(String printerName).
You may create an instance of customMedias like below:
Vector customMedias = new Vector();
customMedias.add();
customMedias.add(new CustomMediaCopies(2));
customMedias.add(new CustomMediaMargin(10f, 12f, 10f, 15f,CustomMediaMargin.MM));
customMedias.add(new CustomMediaMargin(0.8f, 1f, 1.5f, 0.8f,CustomMediaMargin.INCH));
customMedias.add(new CustomMediaTray("Multi-Purpose Tray"));printer - specify the printer you want to use.This printer name must be with full path.
You can call getAllPrinters() method for jdk 1.4 to get the list of system printers.
This printReportJDK14 method is only for jdk 1.4 or above.
An example of calling this printReportJDK14() method:
PrinterJob job = PrinterJob.getPrinterJob();
Vector attributeInfo = new Vector();
attributeInfo.add(PrintConfig.ORIENTATION_LANDSCAPE);
Vector customMedias = new Vector();
customMedias.add(new CustomMediaCopies(2));
customMedias.add(new CustomMediaMargin(0.8f, 1f, 1.5f, 2f,CustomMediaMargin.INCH));
customMedias.add(new CustomMediaTray("Multi-Purpose Tray"));
try
{
bean.printReportJDK14(true,false,null,"jobname", attributeInfo,customMedias,"\\\\192.168.128.111\\Samsung SCX-5x12 Series PCL 6");
}catch(NoSuchPrintAttributeException ec)
{
System.out.println(ec);
}
NoSuchPrintAttributeException - if these parameters in attributeInfo or customMedias do not support, or
if the JDK version is less than JDK 1.4.0PrintConfig,
jet.bean.CustomMediaCopies,
jet.bean.CustomMediaMargin,
jet.bean.CustomMediaTray,
jet.bean.CustomJobPriority,
jet.bean.CustomMediaPaper,
jet.bean.CustomPageRanges,
jet.bean.CustomToFile,
jet.bean.CustomUserName,
jet.bean.CutomJobName
public static java.util.Vector getAllMediaTray(java.lang.String printerName)
throws NoSuchPrintAttributeException
NoSuchPrintAttributeExceptionpublic void layoutReport(java.lang.String rptName)
rptName - name of report to layout.public void runDataSet(java.lang.String dataSetId)
dataSetId - id of data set to run.public ReportInfo getCurrentReport()
public RuntimeInfo getRuntimeInfo()
public void setRuntimeInfo(RuntimeInfo runtimeInfo)
runtimeInfo - The runtimeInfo to set.public void setRuntimeInfos(java.util.HashMap runtimeInfos)
public java.util.HashMap getRuntimeInfos()
public void setRuntimeInfo(java.lang.String reportName,
RuntimeInfo runtimeInfo)
reportName - report instance nameruntimeInfo - RuntimeInfo of specified reportpublic RuntimeInfo getRuntimeInfo(java.lang.String reportName)
reportName - report instance name
public boolean relayout(java.lang.String reportName,
RuntimeInfo info)
reportName - report instance nameinfo - RuntimeInfo indicates the information for re-run report, such as precision, style.
public void setNLSBundleInfo(NLSBundleInfo info)
info - NLS resource bundled information interfacepublic NLSBundleInfo getNLSBundleInfo()
public boolean isIgnoreExportStyle(boolean ignoreExportStyle)
public boolean isIgnoreExportStyle()
public void setXmlStreamFactory(java.lang.String datasourceName,
InputStreamFactory streamFactory)
throws JRScheduleException
datasourceName - indicates datasource namestreamFactory - user implemented InputStreamFactory
JRScheduleExceptionpublic InputStreamFactory getXmlStreamFactory(java.lang.String datasourceName)
datasourceName - indicates datasource name
public void setHDSStreamFactory(java.lang.String datasourceName,
java.lang.String HDSName,
InputStreamFactory streamFactory)
throws JRScheduleException
datasourceName - indicates datasource nameHDSName - indicates HDS namestreamFactory - user implemented HDS InputStreamFactory
JRScheduleException
public InputStreamFactory getHDSStreamFactory(java.lang.String datasourceName,
java.lang.String HDSName)
datasourceName - indicates datasource nameHDSName - indicates HDS name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||