jet.bean
Class JREngine

java.lang.Object
  extended by jet.bean.JREngine
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, JReportPrintListener, jet.rptengine.EngineListener, jet.rptengine.EngineListener1, jet.rptengine.ExportFinishListener, jet.rptengine.FinishedListener, EngineExecuter, jet.util.ExtParameterChangedListener, jet.util.ParameterChangedListener, jet.util.ThreadErrorListener, jet.util.tokenChecker

public class JREngine
extends java.lang.Object
implements java.io.Externalizable, JReportPrintListener, jet.rptengine.EngineListener1, EngineExecuter, jet.rptengine.FinishedListener, jet.rptengine.ExportFinishListener, jet.util.tokenChecker, jet.util.ExtParameterChangedListener

The JREngine is a bean of JReport Engine.
Report Engine Bean provides a programming API for the report running and exporting process. It enables you to:

See Also:
Serialized Form

Field Summary
static int BIG5
          Indicates the BIG5 encoding if need to convert the Chinese encoding of the result.
static int DHTMLFILEMAIL
          Indicates the format of the mail with DHTML file attachment.
static int EXPORTSHAPE
          Indicates to keep geometry objects when exporting the result to Excel file.
static int GB
          Indicates the GBK encoding if need to convert the Chinese encoding of the result.
static int HIDDEN
          Indicates the HTML's text overflow type is HIDDEN.
static int HTMLFILEMAIL
          Indicates the format of the mail with HTML file attachment.
static int HTMLMAIL
          Indicates the format of the mail with HTML content.
static int IE
          Indicates the HTML browser is IE.
static int JDK11
          Indicates to print in JDK version 1.1.X mode.
static int JDK12
          Indicates to print in JDK version 1.2.X mode.
static int JDK14
          Indicates to print in JDK version 1.4.X mode.
static int KEEPORIGIN
          Indicates to keep the original format of the result when exporting the result by Excel format.
static int LANDSCAPE
          The original point is at the bottom left of the paper with x running from the bottom to the top and y running from the left to the right.
static int NETSCAPE
          Indicates the HTML browser is NETSCAPE.
static int NLSSTATUS_AUTO
          Indicates JReport Engine applies NLS setting according to the report template's setting.
static int NLSSTATUS_DISABLE
          Indicates JReport Engine does not apply NLS setting.
static int NLSSTATUS_ENABLE
          Indicates JReport Engine applies NLS setting.
static int NOEXPORTSHAPE
          Indicates to remove geometry objects when exporting the result to Excel file.
static int NOWORDWRAP
          Indicates to set no Word Wrap format for the result when exporting the result by Excel format.
static java.lang.String PARAM_ALL_VALUE
          The flag indicates that parameter's value is ALL.
static int PDFFILEMAIL
          Indicates the format of the mail with PDF file attachment.
static int PLAINTXTMAIL
          Indicates the format of the mail with text file attachment.
static int PORTRAIT
          The original point 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 format of the mail with PostScript file attachment.
static int RPT_STATUS_ALL
          Indicates the "All" status of the report in the ReportSet.
static int RPT_STATUS_CURRENT
          Indicates the "Current" status of the report in the ReportSet.
static int RPT_STATUS_OPEN
          Indicates the "Open" status of the report in the ReportSet.
static int RSTFILEMAIL
          Indicates the format of the mail with RST file attachment.
static int RTFFILEMAIL
          Indicates the format of the mail with Rich Text Format file attachment.
static int SDFTEXTMAIL
          Indicates the format of the mail with standard format text file attachment.
static int vDebug
          Indicates to open the debug.
static int vError
          Indicates to open the error.
static int VISIBLE
          Indicates the HTML's text overflow type is VISIBLE.
static int vOff
          Indicates to close the debug.
static int WORDWRAPALL
          Indicates to set Word Wrap format for the result when exporting the result by Excel format.
static int XLSFILEMAIL
          Indicates the format of the mail with Excel file attachment.
static int XMLFILEMAIL
          Indicates the format of the mail with XML file attachment.
 
Constructor Summary
JREngine()
          Constructs a JREngine instance.
JREngine(boolean setDebugLevel)
          Constructs a JREngine instance.
JREngine(java.lang.String uid, java.lang.String key)
          Constructs a JREngine instance.
JREngine(java.lang.String uid, java.lang.String key, boolean setDebugLevel)
          Constructs a JREngine instance.
 
Method Summary
 boolean addFileQuery(java.lang.String strName, java.io.File flPath)
          Adds the specified FileQuery into the default database of the specified catalog.
 boolean addFileQuery(java.lang.String strName, java.io.File flPath, java.lang.String sourceName)
          Adds the specified FileQuery into the specified database of the specified catalog.
 void closeLog()
          Deprecated. The new setting of JReport log is defined in %install root%\bin\LogConfig.properties.
 void configMailServer(java.lang.String SMTPServerIP, java.lang.String MyMailAddress, int SMTPServerPort)
          Configures the Engine Bean's e-Mail service.
 boolean deleteWherePortion(java.lang.String strName)
          Deletes the specified predefined WHERE portion in the default database and saves the catalog.
 boolean deleteWherePortion(java.lang.String strName, java.lang.String sourceName)
          Deletes the specified predefined WHERE portion in the specified database and saves the catalog.
 void exit()
          Exits from JReport Engine Bean.
 void exit(int timeout)
          Exits from JReport Engine Bean.
 boolean exportToDhtml(java.lang.String htmlFileName)
          Exports the JReport result of the current report to an HTML file.
 boolean exportToDhtml(java.lang.String htmlFileName, boolean bChartApplet, boolean isMultiFile, boolean bUsingTable, boolean bHyperlink, boolean bPageNum, boolean bAbsolute, int iBrowser)
          Exports the JReport result of the current report to an HTML file.
 boolean exportToDhtml(java.lang.String htmlFileName, boolean bChartApplet, boolean isMultiFile, boolean bUsingTable, boolean bHyperlink, boolean bPageNum, boolean bAbsolute, int iBrowser, boolean bincdrilldownfile)
          Exports the JReport result of the current report to an HTML file.
 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 JReport result of the current report to an HTML file.
 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 JReport result of the current report to an HTML file.
 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 JReport result of the current report to an HTML file.
 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 JReport result of the current report to an HTML file.
 boolean exportToDhtml(java.lang.String rstFileName, java.lang.String htmlFileName)
          Exports JReport result file (RST file) to HTML file with TOC contents.
 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 JReport result file (RST file) to HTML file with TOC contents.
 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 JReport result file (RST file) to HTML file with TOC contents.
 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 JReport result file (RST file) to HTML file with TOC contents.
 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 JReport result file (RST file) to HTML file with TOC contents.
 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 JReport result file (RST file) to HTML file with TOC contents.
 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 JReport result file (RST file) to HTML file with TOC contents.
 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 specified report result via 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 JReport result of the current report via 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 JReport result of the current report via Fax.
 boolean exportToFaxServer(ExportInfo info, java.lang.String className, JRFaxServerInfo faxinfo, JRCoverInfo coverinfo)
          Exports the specified report result via the fax server.
 boolean exportToHtml(ExportInfo info, HtmlParameter param)
          Exports the report's result to an HTML file.
 boolean exportToHtml(java.lang.String htmlFileName)
          Exports the JReport result of the current report to an HTML file.
 boolean exportToHtml(java.lang.String htmlFileName, boolean bChartApplet, boolean isMultiFile, boolean bUsingTable, boolean bHyperlink, boolean bPageNum, boolean bAbsolute, int iBrowser)
          Exports the JReport result of the current report to an HTML file.
 boolean exportToHtml(java.lang.String htmlFileName, boolean bChartApplet, boolean isMultiFile, boolean bUsingTable, boolean bHyperlink, boolean bPageNum, boolean bAbsolute, int iBrowser, boolean bincdrilldownfile)
          Exports the JReport result of the current report to an HTML file.
 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 JReport result of the current report to an HTML file.
 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 JReport result of the current report to an HTML file.
 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 JReport result of the current report to an HTML file.
 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 JReport result of the current report to an HTML file.
 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)
          Exports the JReport result of the current report to an HTML file.
 boolean exportToHtml(java.lang.String rstFileName, java.lang.String htmlFileName)
          Exports JReport result file (RST file) to 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 JReport result file (RST file) to 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 JReport result file (RST file) to 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 JReport result file (RST file) to 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 JReport result file (RST file) to 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 JReport result file (RST file) to 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 JReport result file (RST file) to 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)
          Exports JReport result file (RST file) to HTML file.
 void exportToMail(ExportInfo exportInfo, MailInformation info)
          Sends an e-Mail with the JReport result of the specified report.
 void exportToMail(MailInformation info)
          Sends an e-Mail with the JReport result of the current report.
 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)
          Sends an e-Mail with the JReport result of the current report.
 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)
          Sends an e-Mail with the JReport result of the current report.
 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)
          Sends an e-Mail with the JReport result of the current report.
 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)
          Sends an e-Mail with the JReport result of the current report.
 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)
          Sends an e-Mail with the JReport result of the current report.
 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 iCompressImage)
          Sends an e-Mail with the JReport result of the current report.
 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)
          Sends an e-Mail with the JReport result in XML format of the current report.
 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)
          Sends an e-Mail with the JReport result of the current report.
 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)
          Sends an e-Mail with the JReport result of the current report.
 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)
          Sends ana e-Mail with the JReport result of the current report.
 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)
          Sends an e-Mail with the JReport result of the current report.
 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 iCompressImage)
          Sends an e-Mail with the JReport result of the current report.
 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 iCompressImage, boolean isDataOnlyXML, java.lang.String xsdFile, boolean hasHeadFoot)
          Sends an e-Mail with the JReport result of the current report.
 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 iCompressImage, boolean isDataOnlyXML, java.lang.String xsdFile, boolean hasHeadFoot, boolean isGifTrans)
          Sends an e-Mail with the JReport result of the current report.
 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 iCompressImage, boolean isDataOnlyXML, java.lang.String xsdFile, boolean hasHeadFoot, boolean isGifTrans, boolean bTxtCompress)
          Sends an e-Mail with the JReport result of the current report.
 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 iCompressImage, boolean isDataOnlyXML, java.lang.String xsdFile, boolean hasHeadFoot, boolean isGifTrans, boolean bTxtCompress, boolean isTable)
          Sends an e-Mail with the JReport result of the current report.
 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 iCompressImage, boolean isDataOnlyXML, java.lang.String xsdFile, boolean hasHeadFoot, boolean isGifTrans, boolean bTxtCompress, boolean isTable, int isWordWrap)
          Sends an e-Mail with the JReport result of the current report.
 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 iCompressImage, boolean isDataOnlyXML, java.lang.String xsdFile, boolean hasHeadFoot, boolean isGifTrans, boolean bTxtCompress, boolean isTable, int isWordWrap, boolean isBiff8)
          Sends an e-Mail with the JReport result of the current report.
 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 iCompressImage, 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)
          Sends an e-Mail with the JReport result of the current report.
 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 iCompressImage, boolean isDataOnlyXML, java.lang.String xsdFile, boolean hasHeadFoot, boolean isGifTrans, boolean bTxtCompress, boolean isTable, int isWordWrap, boolean isBiff8, int bExportShaps)
          Sends an e-Mail with the JReport result of the current report.
 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 iCompressImage, boolean isDataOnlyXML, java.lang.String xsdFile, boolean hasHeadFoot, boolean isGifTrans, boolean bTxtCompress, boolean isTable, int isWordWrap, boolean isBiff8, int bExportShaps, boolean bToc, boolean bDrill)
          Sends an e-Mail with the JReport result of the current report.
 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 iCompressImage, boolean isDataOnlyXML, java.lang.String xsdFile, boolean hasHeadFoot, boolean isGifTrans, boolean bTxtCompress, boolean isTable, int isWordWrap, boolean isBiff8, int bExportShaps, boolean bToc, boolean bDrill, java.lang.String encoding)
          Sends an e-Mail with the JReport result of the current report.
 java.awt.print.Pageable ExportToPageable()
          Sets the default resolution as 72 into Communicator for the printer and returns it.
 boolean exportToPDF(ExportInfo info, PDFParameter param)
          Exports the report's result to a PDF file.
 boolean exportToPdf(java.io.OutputStream stream)
          Exports the JReport result of the current report to the OutputStream in PDF data format.
 boolean exportToPdf(java.io.OutputStream stream, boolean noMargin, int iCompressImage, boolean isTransparent, boolean bToc, java.lang.String password, int[] pages, int[][] pageRange)
          Exports the JReport result of the current report to the OutputStream in PDF data format.
 boolean exportToPdf(java.lang.String pdfFileName)
          Exports the JReport result of the current report to a PDF file.
 boolean exportToPdf(java.lang.String pdfFileName, boolean noMargin)
          Exports the JReport result of the current report to the PDF files.
 boolean exportToPdf(java.lang.String pdfFileName, boolean noMargin, boolean isSimPrintMode)
          Exports the JReport result of the current report to the PDF files.
 boolean exportToPdf(java.lang.String pdfFileName, boolean noMargin, boolean isSimPrintMode, boolean iCompressImage)
          Exports the JReport result of the current report to the PDF files.
 boolean exportToPdf(java.lang.String pdfFileName, boolean noMargin, boolean isSimPrintMode, int iCompressImage, boolean isTransparent)
          Exports the JReport result of the current report to the PDF files.
 boolean exportToPdf(java.lang.String pdfFileName, boolean noMargin, boolean isSimPrintMode, int iCompressImage, boolean isTransparent, boolean bToc, boolean bDrill)
          Exports the JReport result of the current report to the PDF files.
 boolean exportToPdf(java.lang.String pdfFileName, boolean noMargin, boolean isSimPrintMode, int iCompressImage, boolean isTransparent, boolean bToc, boolean bDrill, java.lang.String password)
          Exports the JReport result of the current report to the PDF files.
 boolean exportToPdf(java.lang.String filename, PDFParameter parameter)
          Exports the JReport result of the current report to the PDF files.
 boolean exportToPdf(java.lang.String rstFileName, java.lang.String pdfFileName)
          Exports JReport result file (RST file) to PDF file.
 boolean exportToPdf(java.lang.String rstFileName, java.lang.String pdfFileName, boolean noMargin)
          Exports JReport result file (RST file) to PDF file.
 boolean exportToPdf(java.lang.String rstFileName, java.lang.String pdfFileName, boolean noMargin, boolean isSimPrintMode)
          Exports JReport result file (RST file) to PDF file.
 boolean exportToPdf(java.lang.String rstFileName, java.lang.String pdfFileName, boolean noMargin, boolean isSimPrintMode, boolean iCompressImage)
          Exports JReport result file (RST file) to PDF file.
 boolean exportToPdf(java.lang.String rstFileName, java.lang.String pdfFileName, boolean noMargin, boolean isSimPrintMode, int iCompressImage, boolean isTransparent)
          Exports JReport result file (RST file) to PDF file.
 boolean exportToPdf(java.lang.String rstFileName, java.lang.String pdfFileName, boolean noMargin, boolean isSimPrintMode, int iCompressImage, boolean isTransparent, boolean bToc, boolean bDrill)
          Exports JReport result file (RST file) to PDF file.
 boolean exportToPdf(java.lang.String rstFileName, java.lang.String pdfFileName, boolean noMargin, boolean isSimPrintMode, int iCompressImage, boolean isTransparent, boolean bToc, boolean bDrill, java.lang.String password)
          Exports JReport result file (RST file) to PDF file.
 boolean exportToPdf(java.lang.String rstFileName, java.lang.String filename, PDFParameter parameter)
          Exports JReport result file (RST file) to PDF file.
 boolean exportToPS(ExportInfo info, PSParameter param)
          Exports the report to a postscript file.
 boolean exportToPS(java.io.OutputStream stream)
          Exports the JReport result of the current report to a PostScript file.
 boolean exportToPS(java.io.OutputStream stream, boolean noMargin)
          Exports the JReport result of the current report in PostScript format to the Stream.
 boolean exportToPS(java.lang.String psFileName)
          Exports the JReport result of the current report to a PostScript file.
 boolean exportToPS(java.lang.String psFileName, boolean noMargin)
          Exports the JReport result of the current report to a PostScript file.
 boolean exportToPS(java.lang.String rstFileName, java.lang.String psFileName)
          Exports the JReport result of the current report to a PostScript file.
 boolean exportToPS(java.lang.String rstFileName, java.lang.String psFileName, boolean noMargin)
          Exports the JReport result of the current report to a PostScript file.
 boolean exportToRst(java.util.Map reportInfo, java.lang.String rstFileName, boolean isZip)
          Saves the current report result to a JReport Result file (RST file).
 boolean exportToRst(java.lang.String rstFileName)
          Saves the current report result to a JReport Result file (RST file).
 boolean exportToRst(java.lang.String loadRstFileName, java.lang.String rstFileName)
          Loads the JReport Result file (RST file) and saves it as another one.
 boolean exportToRtf(ExportInfo info, RtfParameter param)
          Exports the report to a RTF file.
 boolean exportToRtf(java.io.OutputStream stream)
          Exports the JReport result of the current report in RTF(Rich Text Format) format to the Stream.
 boolean exportToRtf(java.io.OutputStream stream, boolean noMargin)
          Exports the JReport result of the current report in RTF(Rich Text Format) format to the Stream.
 boolean exportToRtf(java.lang.String rtfFileName)
          Exports the JReport result of the current report to a RTF(Rich Text Format) file.
 boolean exportToRtf(java.lang.String rtfFileName, boolean noMargin)
          Exports the JReport result of the current report to a RTF(Rich Text Format) file.
 boolean exportToRtf(java.lang.String rstFileName, java.lang.String rtfFileName)
          Exports JReport result file (RST file) to the RTF(Rich Text Format) file.
 boolean exportToRtf(java.lang.String rstFileName, java.lang.String rtfFileName, boolean noMargin)
          Exports JReport result file (RST file) to the RTF(Rich Text Format) file.
 boolean exportToText(ExportInfo info, TextParameter param)
          Exports the report's result to a text file.
 boolean exportToText(java.io.OutputStream stream, boolean isNormalText)
          Exports the JReport result of the current report in text format to the specified Stream.
 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 the JReport result of the current report in text format to the specified Stream.
 boolean exportToText(java.lang.String textFileName, boolean isNormalText)
          Exports the JReport result of the current report to a TEXT file.
 boolean exportToText(java.lang.String textFileName, boolean isNormalText, boolean isRepeat, char delimiter)
          Exports the JReport result of the current report to a TEXT file.
 boolean exportToText(java.lang.String textFileName, boolean isNormalText, boolean isRepeat, char delimiter, int udchWidth, int udchHeight)
          Exports the JReport result of the 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 the JReport result of the 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 the JReport result of the 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 the JReport result of the 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 the JReport result of the current report to a TEXT file.
 boolean exportToText(java.lang.String textFileName, boolean isNormalText, int udchWidth, int udchHeight)
          Exports the JReport result of the current report to a TEXT file.
 boolean exportToText(java.lang.String rstFileName, java.lang.String textFileName, boolean isNormalText)
          Exports JReport result file (RST file) to TEXT file.
 boolean exportToText(java.lang.String rstFileName, java.lang.String textFileName, boolean isNormalText, boolean isRepeat, char delimiter)
          Exports JReport result file (RST file) to TEXT file.
 boolean exportToText(java.lang.String rstFileName, java.lang.String textFileName, boolean isNormalText, boolean isRepeat, char delimiter, int udchWidth, int udchHeight)
          Exports JReport result file (RST file) to 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 JReport result file (RST file) to 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 JReport result file (RST file) to 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 JReport result file (RST file) to 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 JReport result file (RST file) to 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 JReport result file (RST file) to TEXT file.
 boolean exportToText(java.lang.String rstFileName, java.lang.String textFileName, boolean isNormalText, int udchWidth, int udchHeight)
          Exports JReport result file (RST file) to TEXT file.
 boolean exportToXls(ExportInfo info, ExcelParameter param)
          Exports the report to an Excel file.
 boolean exportToXls(java.io.OutputStream stream)
          Exports the JReport result of the current report in Excel format to the Stream.
 boolean exportToXls(java.io.OutputStream stream, int isWordWrap, int bExportShaps, boolean shareLabel)
          Exports the JReport result of the current report in the Excel format to the Stream.
 boolean exportToXls(java.lang.String xlsFileName)
          Exports the JReport result of the current report to an Excel file.
 boolean exportToXls(java.lang.String xlsFileName, int isWordWrap)
          Exports the JReport result of the current report to the Excel file.
 boolean exportToXls(java.lang.String xlsFileName, int isWordWrap, boolean isBiff8)
          Exports the JReport result of the current report to the Excel file.
 boolean exportToXls(java.lang.String xlsFileName, int isWordWrap, boolean isBiff8, int bExportShaps)
          Exports the JReport result of the current report to the Excel file.
 boolean exportToXls(java.lang.String xlsFileName, int isWordWrap, boolean isBiff8, int bExportShaps, boolean shareLabel)
          Exports the JReport result of the current report to an Excel file.
 boolean exportToXls(java.lang.String rstFileName, java.lang.String xlsFileName)
          Exports the JReport result file (RST file) to an nExcel format file.
 boolean exportToXls(java.lang.String rstFileName, java.lang.String xlsFileName, int isWordWrap)
          Exports the JReport result file (RST file) to an Excel format file.
 boolean exportToXls(java.lang.String rstFileName, java.lang.String xlsFileName, int isWordWrap, boolean isBiff8)
          Exports the JReport result file (RST file) to an Excel format file.
 boolean exportToXls(java.lang.String rstFileName, java.lang.String xlsFileName, int isWordWrap, boolean isBiff8, int bExportShaps)
          Exports the JReport result file (RST file) to an Excel format file.
 boolean exportToXls(java.lang.String rstFileName, java.lang.String xlsFileName, int isWordWrap, boolean isBiff8, int bExportShaps, boolean shareLabel)
          Exports the JReport result file (RST file) to an Excel format file.
 boolean exportToXML(ExportInfo info, XmlParameter param)
          Exports the JReport result of the specified report to an XML format file.
 boolean exportToXML(java.lang.String xmlFileName, boolean isMultiFile, boolean isOnlyData)
          Exports the JReport result of the current report to an XML format file.
 boolean exportToXML(java.lang.String xmlFileName, boolean isOnlyData, java.lang.String existXSFile)
          Exports the JReport result of the current report to an XML format file.
 boolean exportToXML(java.lang.String rstFileName, java.lang.String xmlFileName, boolean isMultiFile, boolean isOnlyData)
          Exports JReport result file (RST file) to an XML format file.
 boolean exportToXML(java.lang.String rstFileName, java.lang.String xmlFileName, boolean isOnlyData, java.lang.String existedSchemaFile)
          Exports JReport result file (RST file) to an XML format file.
 java.lang.String[] getAllDataSource(int rptStatus)
          Gets all data source names used by the reportset with specified report's status.
static java.lang.String[] getAllDataSource(java.lang.String catName)
          Gets all data source names of the 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)
          Gets all data source names used by the reportset with specified report's status.
 java.util.Vector getAllHtmlFile()
          Returns all html files that are generated by exportToHtml.
static java.util.Vector getAllMediaTray(java.lang.String printerName)
          Gets all media tray for the specified printer.
 java.util.Vector getAllPdfFile()
          Returns all PDF files that are generated by exportToPDF.
static java.util.Vector getAllPrinters()
          Gets the available printers' names.
static java.util.Vector getAllPrinters(java.lang.String reportHome)
          Gets the available printers' names.
 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()
          Gets all exported XML file names.
 java.util.Vector getAvailableLocales(java.lang.String clientLocale)
          Gets all the Locales that the current engine supports.
 java.util.Enumeration getAvailableQueryFields()
          Gets the available fields of the query.
 java.util.Enumeration getAvailableWherePortions()
          Deprecated.  
 java.util.Enumeration getAvailableWherePortions(java.lang.String datasourceName, java.lang.String queryName)
          Gets all WHERE portions' names which depend on the specified query in the catalog.
 java.lang.String getCatName()
          Gets the file name of the JReport catalog.
 java.lang.String getClientName()
          Gets the client name of Engine Bean.
 Communicator getCommunicator(java.lang.String filename, int[] pageNums)
          Gets the communicator from the JReport Result file (RST file).
 Communicator getCommunicator(java.lang.String filename, int[] pageNums, java.lang.String rptName, java.lang.String viewName)
          Gets the communicator from the JReport Result file (RST file).
 Communicator getCommunicator(java.lang.String rptName, java.lang.String viewName, boolean security)
           
 int getConvertFromEncoding()
          Gets the original encoding of the encoding converter.
 int getConvertToEncoding()
          Gets the target encoding of the encoding converter.
 ReportInfo getCurrentReport()
          Gets the current report information.
 java.lang.String getDataDriver()
          Gets the data driver which is set for Engine Bean.
static java.lang.String getDefaultEncoding()
          Gets the default encoding of Engine Bean.
static java.lang.String getDefaultLocale()
          Gets the default Locale of Engine Bean.
 java.lang.String getEncoding()
          Gets current encoding setting of Engine Bean.
 InputStreamFactory getHDSStreamFactory(java.lang.String datasourceName, java.lang.String HDSName)
          Gets an HDS data stream factory.
 java.lang.String getHelpPath()
          Gets the help path.
 int getID()
          Gets the ID number of the JREngine.
 java.lang.String getKey()
          Gets the key of JReport runtime license.
 java.lang.String getLoadReport()
          Deprecated.  
 jet.util.nls.NLSApplyParam getNLSApplyParamInfo()
          Gets NLS resource bundled information.
 NLSBundleInfo getNLSBundleInfo()
          Gets NLS resource bundled information.
 int[] getPageNumbers()
          Gets the page numbers array filtered by Page Level Security setting.
 int getPageOrientation()
          Gets the page orientation setting of the current report's engine.
 java.util.Hashtable getParamDescs()
          Gets parameters used by the given reports of the reportset.
 java.lang.String getParamFile()
          Sets the name of the parameter file that stores the parameters and their values.
 java.lang.String getParamValues()
          Gets the parameters' values that are set.
 java.lang.String getPrintStatus()
          Gets the print status after printing, including: "No print job", "Printing", "Busy", "No report load", "OK", and "Error!".
 java.lang.String getReason()
          Gets the detail error message while detecting the engine error.
 Communicator getReportCommunicator()
          Gets 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 file name of the reportset.
 java.util.Vector getReportParams()
          Gets parameters used by the given reportset.
 java.util.Vector getReportParams(int status)
          Gets parameters used by the given reports in the reportset.
 java.util.Vector getReportParams(java.util.Vector reportNames)
          Gets parameters used by the given reports of the reportset.
 java.util.Vector getReportsOfReportSet()
          Gets the report information.
static java.util.Vector getReportsOfReportSet(java.lang.String reportSetFileName)
           
static java.util.Vector getReportsOfReportSet(java.lang.String catName, java.lang.String reportSetFileName)
          Gets the report information.
 java.util.Vector getReportsOfResult(java.lang.String rstFileName)
          Gets the report information from the result file.
 java.lang.String getResultFile()
          Gets the file name of the JReport result file which will be generated by JReport Engine Bean.
 java.lang.String getResultSet(java.lang.String url)
          Gets the url of the Cache Query Result(CQR) that has been set for the JReport Engine Bean.
 RuntimeInfo getRuntimeInfo()
          Deprecated.
 RuntimeInfo getRuntimeInfo(java.lang.String reportName)
          Gets RuntimeInfo of the report.
 java.util.HashMap getRuntimeInfos()
          Gets RuntimeInfos of the reportset.
 java.lang.String getSID()
          Gets the security ID of Page Level Security.
 boolean getSingleThread()
          Checks whether the engine is in single-thread mode or not.
 java.lang.String getSQL()
           
 java.lang.String getStatus()
          Gets the status of running engines.
 java.util.Vector getStyleGroupNames()
          Gets all available style group names.
 java.lang.String getTemplatePath()
          Deprecated.  
 java.lang.String getTempPath()
          Gets the temporary path of Engine Bean.
 java.lang.Throwable getThreadError()
          Gets the Throwable error that is thrown when JReport engine is running.
 java.lang.Throwable getThrowable()
          Gets the Throwable error during the engine running period.
 boolean getThrowException()
          Gets the status of whether or not to throw exception from JReport Engine Bean when an error occurs in JReport engine.
 int getTotalPageNumber()
          Gets the number of total pages of the Current report's result.
 java.lang.String getUID()
          Gets the UserID of JReport runtime license.
static java.lang.String[] getUserInfo(java.lang.String catName, java.lang.String dataSourceName)
          Gets the connection's user information of the specified catalog and data source.
static java.lang.String[] getUserInfoByReport(java.lang.String reportName, java.lang.String dataSourceName)
          Gets the default user information in the specified catalog and data source.
 java.lang.String getVersion()
          Gets the main version number and build number information of the JReport product.
 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 an xml data stream factory.
 java.lang.String getXSDFile()
          Deprecated.  
 boolean hasPageSecurity()
          Checks whether the current report defines the Page Level Security or not.
 boolean hasPageSecurity(java.lang.String rptName, java.lang.String viewName)
          Checks whether the given report defines the Page Level Security or not.
 boolean hasParameter()
          Checks whether the given reportset has parameters or not.
 boolean isIgnoreExportStyle()
          Gets if the report exporting ignores export style.
 boolean isIgnoreExportStyle(boolean ignoreExportStyle)
          Sets if the report exporting ignores export style.
 void modifyUserInfo(java.lang.String strUserName, java.lang.String strPassword)
          Modifies the User and Password information of the JReport connection definition of the default JReport database.
 void modifyUserInfo(java.lang.String strUserName, java.lang.String strPassword, java.lang.String dataSourceName)
          Modifies the User and Password information of the specified JReport connection definition.
 boolean modifyWherePortion(java.lang.String strName, java.lang.String strSQL)
          Deprecated.  
 boolean modifyWherePortion(java.lang.String strName, java.util.Vector vecGroups)
          Deprecated.  
 java.util.Vector<ParamDesc> paramValueChanged(java.lang.String paramName, jet.util.ParameterValueDesc paramValue)
          Gets the related Parameters while changing the value of a cascading parameter or a Parameters type parameter.
 java.util.Vector paramValueChanged(java.lang.String paramName, java.lang.String paramValue)
          Gets the related Parameters while changing the value of a cascading parameter.
 java.util.Vector paramValueChanged(java.lang.String paramName, java.lang.String[] paramValues)
          Gets the related Parameters while changing the value of a cascading parameter.
 void printReport()
          Prints the report's result by printer.
 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's result by printer.
 void printReport(java.lang.Object job, boolean bInteractive, java.lang.Object pageFormat, boolean bInBackground, JReportPrintListener jreportprintlistener, int useJDK_X, java.lang.String jobName, java.util.Vector attributeInfo, java.lang.String printer)
          Prints the report's result by printer.
 void printReport(java.lang.Object printJob, java.lang.Object pageFormat, boolean bInteractive, boolean bInBackground, boolean bUseJDK11)
          Prints the report's result by printer.
 void printReport(java.lang.Object printJob, java.lang.Object pageFormat, boolean bInteractive, boolean bInBackground, boolean bUseJDK11, boolean bSeparateLargePage)
          Prints the report's result by printer.
 void printReport(java.lang.Object printJob, java.lang.Object pageFormat, boolean bInteractive, boolean bInBackground, boolean bUseJDK11, boolean bSeparateLargePage, java.lang.String jobName)
          Prints the report's result by printer.
 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)
          Prints the report's result by 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.
 boolean relayout(java.lang.String reportName, RuntimeInfo info)
          Re-runs the report with the specified RuntimeInfo.
 void runAllReport()
          Loads the given reportset's template and generates the reports' results.
 void runCurrentReport()
          Loads the given reportset's template and generates the reports' results.
 void runReport()
          Loads the given reportset's template and generates the reports' results.
 void runReport(boolean genRst)
          Loads the given reportset's template and generates the reports' results.
 void runReport(java.lang.String rsdFilename)
          Loads the given JReport DHTML result file (RSD file) and generates the reports' results.
 void runReport(java.lang.String[] rptNames, java.util.Vector[] viewNames)
          Loads the given reportset's template and generates the reports' results.
 void runReport(java.util.Vector vReportNames)
          Loads the given reportset's template and generates the reports' results.
 boolean save(java.lang.String resultFileName)
          Saves the current report's result to a JReport Result file (RST file).
 boolean saveCatalog()
          Saves the loaded JReport catalog.
 boolean saveWherePortion(java.lang.String strName, java.lang.String strSQL)
          Deprecated.  
 boolean saveWherePortion(java.lang.String strName, java.lang.String strQueryName, java.lang.String strSQL)
          saves the specified SQL statement to the JReport Catalog.
 boolean saveWherePortion(java.lang.String strName, java.lang.String dataSourceName, java.lang.String strQueryName, java.lang.String strSQL)
          Saves the specified SQL statement to the JReport Catalog.
 boolean saveWherePortion(java.lang.String strName, java.lang.String dataSourceName, java.lang.String strQueryName, java.util.Vector vecGroups)
          Saves the specified SQL statement to the JReport Catalog.
 boolean saveWherePortion(java.lang.String strName, java.lang.String strQueryName, java.util.Vector vecGroups)
          Saves the specified SQL statement to the JReport Catalog.
 boolean saveWherePortion(java.lang.String strName, java.util.Vector vecGroups)
          Deprecated.  
 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)
          Exports 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)
          Export current report engine that has already run to mail.
 void setAuthencatorMessage(java.lang.String username, java.lang.String password, java.lang.String mailAddress)
          Sets the e-Mail's authenticator information.
 void setCatName(java.lang.String catName)
          Sets the file name of the JReport catalog.
 void setClientName(java.lang.String name)
          Sets the client name of Engine Bean.
 void setConnection(java.sql.Connection userDbConnection)
          Deprecated. Replaced by setConnection(String, Connection)
 void setConnection(java.sql.Connection userDbConnection, boolean fetchSupportInfo)
          Deprecated. Replaced by setConnection(String, Connection, boolean)
 void setConnection(java.lang.String dataSourceName, java.sql.Connection userDbConnection)
          Sets the runtime connection of the specified JReport database.
 void setConnection(java.lang.String dataSourceName, java.sql.Connection userDbConnection, boolean fetchSupportInfo)
          Sets the runtime connection of the specified JReport database's default connection.
 void setConnection(java.lang.String strUID, java.lang.String strPSWD)
          Deprecated. Replaced by setConnection(String, String, String)
 void setConnection(java.lang.String dataSourceName, java.lang.String connectionName, java.sql.Connection userDbConnection)
          Sets the runtime connection of the specified JReport database and connection.
 void setConnection(java.lang.String dataSourceName, java.lang.String strUID, java.lang.String strPSWD)
          Sets the runtime connection's definition of the specified JReport database.
 void setConnection(java.lang.String strURL, java.lang.String strUID, java.lang.String strPSWD, java.lang.String strJdbcDriver)
          Deprecated. Replaced by setConnection(String, String, String, String, String)
 void setConnection(java.lang.String strURL, java.lang.String strUID, java.lang.String strPSWD, java.lang.String strJdbcDriver, boolean fetchSupportInfo)
          Deprecated. Replaced by setConnection(String, String, String, String, String, boolean)
 void setConnection(java.lang.String dataSourceName, java.lang.String strURL, java.lang.String strUID, java.lang.String strPSWD, java.lang.String strJdbcDriver)
          Sets the runtime connection's definition of the specified JReport database.
 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 runtime connection's definition of the specified JReport database.
 void setConnection(java.lang.String dataSourceName, java.lang.String connectionName, java.lang.String strURL, java.lang.String strUID, java.lang.String strPSWD, java.lang.String strJdbcDriver)
          Sets the runtime connection's definition of the specified JReport database.
 void setConvertEncoding(int fromEncoding, int toEncoding)
          Sets the encodings for converting the characters between Traditional Chinese and Simple Chinese.
 void setDataDriver(java.lang.String url)
          Sets the data driver of the report with single dataset.
 void setDataDriver(java.lang.String url, java.lang.String dataSetName)
          Sets the data driver of the given dataset.
static void setDefaultEncoding(java.lang.String defaultEncoding)
          Sets the default encoding of Engine Bean.
static void setDefaultLocale(java.lang.String defaultLocale)
          Sets the default Locale of all Engine Beans.
 void setEncoding(java.lang.String encoding)
          Sets the encoding setting of Engine Bean.
 void setFetchSupportInfo(boolean fetchSupportInfo)
          Specifies whether or not to get the user support information when connecting to the database.
 void setHDSStreamFactory(java.lang.String datasourceName, java.lang.String HDSName, InputStreamFactory streamFactory)
          Sets an HDS data stream factory.
 void setHelpPath(java.lang.String sHelpPath)
          Sets the help path.
 void setHtmlImageType(int imageType)
          Deprecated.  
 void setIsLinkReport(java.lang.String rptName, boolean isLinkReport)
           
 void setKey(java.lang.String key)
          Sets the key of JReport runtime license.
 void setLoadReport(java.lang.String loadReport)
          Deprecated.  
 void setLocale(java.util.Locale currentLocale)
          Sets the locale setting of Engine Bean.
 void setLocale(java.lang.String language)
          Sets the locale setting of Engine Bean.
 void setLocale(java.lang.String language, java.lang.String country)
          Sets the locale setting of Engine Bean.
 boolean setLogFile(java.lang.String fileName)
          Resets the new log file.
 void setNamedWherePortion(java.lang.String name)
          Sets the predefined WHERE portion.
 void setNamedWherePortion(java.lang.String dataSourceName, java.lang.String queryName, java.lang.String name)
          Sets the predefined WHERE portion.
 void setNLSApplyParamInfo(jet.util.nls.NLSApplyParam info)
          Sets all NLS resource bundled information.
 void setNLSBundleInfo(NLSBundleInfo info)
          Sets NLS resource bundled information.
 void setPageNumbers(int[] pageNums)
          Sets the page numbers array filtered by Page Level Security setting.
 void setParamFile(java.lang.String paramFile)
          Sets the filename of the parameter value file.
 void setParamValueDescs(java.util.Map<java.lang.String,jet.util.ParameterValueDesc> params)
          Sets the parameter values of the parameters used in the reportset.
 void setParamValues(java.util.Properties params)
          Sets the parameter values of the parameters used in the reportset.
 void setParamValues(java.lang.String paramValues)
          Sets the parameters' values used in the reportset.
 void setPrintStatus()
          Sets the print status as "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 file name of the reportset.
 void setResultFile(java.lang.String resultFile)
          Specifies the file name of the JReport result file(.rst) which will be generated by JReport Engine Bean.
 void setResultSet(java.lang.String cqrName)
          Sets the Cache Query Result(CQR) of the JReport engine.
 void setRuntimeInfo(RuntimeInfo runtimeInfo)
          Deprecated.
 void setRuntimeInfo(java.lang.String reportName, RuntimeInfo runtimeInfo)
          Sets RuntimeInfo of the report.
 void setRuntimeInfos(java.util.HashMap runtimeInfos)
          Sets RuntimeInfos of the reportset.
 void setSecurityContext(SecurityContext sc)
          Sets the Security Context definition used for the reportset.
 void setShowInfoLevel(int level)
          Deprecated. The new setting of JReport log is defined in %install root%\bin\LogConfig.properties.
 void setSID(java.lang.String sid)
          Sets the security ID of Page Level Security setting.
 void setSingleThread(boolean single)
          Sets whether the JReport engine runs in single-thread mode or not.
 void setStyleGroup(java.lang.String styleGroupName)
          Sets the engine's runtime style.
 void setTemplatePath(java.lang.String sTemplatePath)
          Sets the template path.
 void setTempPath(java.lang.String sTempPath)
          Sets the temporary path of Engine Bean.
 void setThrowException(boolean isThrowException)
          Sets whether or not to throw an exception from JReport Engine Bean.
 void setTimeZone(java.lang.String timeZone)
          Sets the new time zone of Engine Bean by the given TimeZone ID.
 void setTimeZone(java.util.TimeZone curTimeZone)
          Sets the new time zone of Engine Bean.
 void setUID(java.lang.String uid)
          Sets the UserID of JReport runtime license.
 void setUserName(java.lang.String name)
          Sets the user name used for report Security Context.
 void setUserResultSet(java.sql.ResultSet userResultSet)
          Sets the runtime resultset of the default JReport database.
 void setWherePortion(java.lang.String where)
          Sets the runtime WHERE portion.
 void setWherePortion(java.lang.String dataSourceName, java.lang.String queryName, java.lang.String where)
          Sets the runtime WHERE portion.
 void setXmlStreamFactory(java.lang.String datasourceName, InputStreamFactory streamFactory)
          Sets an xml data stream factory.
 void setXSDFile(java.lang.String sFilename)
          Deprecated.  
 void stopReport()
          Deprecated. Replaced by stopReportSet()
 void stopReport(java.lang.String[] reports, java.util.Vector[] views)
          Stops all running engines specified by the reports and views.
 void stopReport(java.lang.String report, java.lang.String view)
          Stops the running engine specified by the report and view.
 void stopReportSet()
          Stops all running engines.
 void waitForEngineFinish()
          Waits until the engine process is successful.
 
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
 
Methods inherited from interface jet.rptengine.EngineListener1
afterRun
 
Methods inherited from interface jet.rptengine.EngineListener
finished, started
 
Methods inherited from interface jet.util.ThreadErrorListener
ThreadException
 
Methods inherited from interface jet.rptengine.FinishedListener
finished
 

Field Detail

vOff

public static final int vOff
Indicates to close the debug.

See Also:
Constant Field Values

vDebug

public static final int vDebug
Indicates to open the debug.

See Also:
Constant Field Values

vError

public static final int vError
Indicates to open the error.

See Also:
Constant Field Values

LANDSCAPE

public static final int LANDSCAPE
The original point is at the bottom left of the paper with x running from the bottom to the top and y running from the left to the right. Note that this is not the Macintosh landscape but the PostScript landscape based on Windows.

See Also:
Constant Field Values

PORTRAIT

public static final int PORTRAIT
The original point is at the top left of the paper with x running to the right and y running down the paper.

See Also:
Constant Field Values

RSTFILEMAIL

public static final int RSTFILEMAIL
Indicates the format of the mail with RST file attachment.

See Also:
Constant Field Values

HTMLMAIL

public static final int HTMLMAIL
Indicates the format of the mail with HTML content.

See Also:
Constant Field Values

HTMLFILEMAIL

public static final int HTMLFILEMAIL
Indicates the format of the mail with HTML file attachment.

See Also:
Constant Field Values

PDFFILEMAIL

public static final int PDFFILEMAIL
Indicates the format of the mail with PDF file attachment.

See Also:
Constant Field Values

PLAINTXTMAIL

public static final int PLAINTXTMAIL
Indicates the format of the mail with text file attachment.

See Also:
Constant Field Values

SDFTEXTMAIL

public static final int SDFTEXTMAIL
Indicates the format of the mail with standard format text file attachment.

See Also:
Constant Field Values

PSFILEMAIL

public static final int PSFILEMAIL
Indicates the format of the mail with PostScript file attachment.

See Also:
Constant Field Values

XLSFILEMAIL

public static final int XLSFILEMAIL
Indicates the format of the mail with Excel file attachment.

See Also:
Constant Field Values

RTFFILEMAIL

public static final int RTFFILEMAIL
Indicates the format of the mail with Rich Text Format file attachment.

See Also:
Constant Field Values

XMLFILEMAIL

public static final int XMLFILEMAIL
Indicates the format of the mail with XML file attachment.

See Also:
Constant Field Values

DHTMLFILEMAIL

public static final int DHTMLFILEMAIL
Indicates the format of the mail with DHTML file attachment.

See Also:
Constant Field Values

IE

public static final int IE
Indicates the HTML browser is IE.

See Also:
Constant Field Values

NETSCAPE

public static final int NETSCAPE
Indicates the HTML browser is NETSCAPE.

See Also:
Constant Field Values

VISIBLE

public static final int VISIBLE
Indicates the HTML's text overflow type is VISIBLE.

See Also:
Constant Field Values

HIDDEN

public static final int HIDDEN
Indicates the HTML's text overflow type is HIDDEN.

See Also:
Constant Field Values

KEEPORIGIN

public static final int KEEPORIGIN
Indicates to keep the original format of the result when exporting the result by Excel format.

See Also:
Constant Field Values

NOWORDWRAP

public static final int NOWORDWRAP
Indicates to set no Word Wrap format for the result when exporting the result by Excel format.

See Also:
Constant Field Values

WORDWRAPALL

public static final int WORDWRAPALL
Indicates to set Word Wrap format for the result when exporting the result by Excel format.

See Also:
Constant Field Values

EXPORTSHAPE

public static final int EXPORTSHAPE
Indicates to keep geometry objects when exporting the result to Excel file.

See Also:
Constant Field Values

NOEXPORTSHAPE

public static final int NOEXPORTSHAPE
Indicates to remove geometry objects when exporting the result to Excel file.

See Also:
Constant Field Values

GB

public static final int GB
Indicates the GBK encoding if need to convert the Chinese encoding of the result.


BIG5

public static final int BIG5
Indicates the BIG5 encoding if need to convert the Chinese encoding of the result.


RPT_STATUS_CURRENT

public static final int RPT_STATUS_CURRENT
Indicates the "Current" status of the report in the ReportSet.

See Also:
Constant Field Values

RPT_STATUS_OPEN

public static final int RPT_STATUS_OPEN
Indicates the "Open" status of the report in the ReportSet.

See Also:
Constant Field Values

RPT_STATUS_ALL

public static final int RPT_STATUS_ALL
Indicates the "All" status of the report in the ReportSet.

See Also:
Constant Field Values

JDK11

public static final int JDK11
Indicates to print in JDK version 1.1.X mode.

See Also:
Constant Field Values

JDK12

public static final int JDK12
Indicates to print in JDK version 1.2.X mode.

See Also:
Constant Field Values

JDK14

public static final int JDK14
Indicates to print in JDK version 1.4.X mode.

See Also:
Constant Field Values

NLSSTATUS_ENABLE

public static int NLSSTATUS_ENABLE
Indicates JReport Engine applies NLS setting.


NLSSTATUS_DISABLE

public static int NLSSTATUS_DISABLE
Indicates JReport Engine does not apply NLS setting.


NLSSTATUS_AUTO

public static int NLSSTATUS_AUTO
Indicates JReport Engine applies NLS setting according to the report template's setting.


PARAM_ALL_VALUE

public static final java.lang.String PARAM_ALL_VALUE
The flag indicates that parameter's value is ALL.

See Also:
Constant Field Values
Constructor Detail

JREngine

public JREngine()
Constructs a JREngine instance.


JREngine

public JREngine(boolean setDebugLevel)
Constructs a JREngine instance.

Parameters:
setDebugLevel - Indicates whether or not to set debug information.

JREngine

public JREngine(java.lang.String uid,
                java.lang.String key)
Constructs a JREngine instance.

Parameters:
uid - The UserID of JReport runtime license.
key - The key of JReport runtime license.

JREngine

public JREngine(java.lang.String uid,
                java.lang.String key,
                boolean setDebugLevel)
Constructs a JREngine instance.

Parameters:
uid - The UserID of JReport runtime license.
key - The key of JReport runtime license.
setDebugLevel - Indicates whether or not to set debug information.
Method Detail

getDefaultLocale

public static java.lang.String getDefaultLocale()
Gets the default Locale of Engine Bean.

Returns:
String value of the default Locale.

setDefaultLocale

public static void setDefaultLocale(java.lang.String defaultLocale)
Sets the default Locale of all Engine Beans.

Parameters:
defaultLocale - The String format value of Locale.

getDefaultEncoding

public static java.lang.String getDefaultEncoding()
Gets the default encoding of Engine Bean.

Returns:
String value of the encoding.

setDefaultEncoding

public static void setDefaultEncoding(java.lang.String defaultEncoding)
Sets the default encoding of Engine Bean.

Parameters:
default - String value of the encoding to be set.

getID

public int getID()
Gets the ID number of the JREngine. Every JREngine instance has a unique ID.

Returns:
id number of the JREngine.

setConvertEncoding

public void setConvertEncoding(int fromEncoding,
                               int toEncoding)
Sets the encodings for converting the characters between Traditional Chinese and Simple Chinese. JReport Engine can convert the Chinese encoding of the result fetched from the database based on characters.

Parameters:
fromEncoding - The original encoding of the converter. It is either GB or BIG5.
toEncoding - The target encoding of the converter. It is either GB or BIG5.

getConvertFromEncoding

public int getConvertFromEncoding()
Gets the original encoding of the encoding converter. JReport Engine can convert the Chinese encoding of the result fetched from the database based on characters.

Returns:
the original encoding of the converter. It is either GB or BIG5.

getConvertToEncoding

public int getConvertToEncoding()
Gets the target encoding of the encoding converter.

Returns:
the target encoding of the converter. It is either GB or BIG5.

getUID

public java.lang.String getUID()
Gets the UserID of JReport runtime license.

Returns:
the UserID of JReport runtime license.
Since:
Version 4.0.

setUID

public void setUID(java.lang.String uid)
Sets the UserID of JReport runtime license.

Parameters:
uid - The UserID of JReport runtime license.
Since:
Version 4.0

getKey

public java.lang.String getKey()
Gets the key of JReport runtime license.

Returns:
the key of JReport runtime license.
Since:
Version 4.0

setKey

public void setKey(java.lang.String key)
Sets the key of JReport runtime license.

Parameters:
key - The key of JReport runtime license.
Since:
Version 4.0.

setSingleThread

public void setSingleThread(boolean single)
Sets whether the JReport engine runs in single-thread mode or not.

Parameters:
single - true if the engine uses single-thread mode; false otherwise, it is in multi-thread mode. It is especially used in an environment like EJB, which only allows single thread when performing transactions.

getSingleThread

public boolean getSingleThread()
Checks whether the engine is in single-thread mode or not.

Returns:
true if the engine is in single-thread mode; false otherwise.

setStyleGroup

public void setStyleGroup(java.lang.String styleGroupName)
Sets the engine's runtime style.

Parameters:
styleGroupName - The name of the style group predefined by JReport Designer.

setLocale

public void setLocale(java.util.Locale currentLocale)
Sets the locale setting of Engine Bean.

Parameters:
currentLocale - The new locale setting of Engine Bean.

setLocale

public void setLocale(java.lang.String language)
Sets the locale setting of Engine Bean. Constructs a locale from a language code.

Parameters:
locale - Lowercase two-letter ISO-639 code.
See Also:
#java.util.Locale

setLocale

public void setLocale(java.lang.String language,
                      java.lang.String country)
Sets the locale setting of Engine Bean. Constructs the locale from language and country.

Parameters:
language - Lowercase two-letter ISO-639 code.
country - Uppercase two-letter ISO-3166 code.
See Also:
#java.util.Locale

setEncoding

public void setEncoding(java.lang.String encoding)
Sets the encoding setting of Engine Bean.

Parameters:
encoding - The encoding name to be set.

getEncoding

public java.lang.String getEncoding()
Gets current encoding setting of Engine Bean.

Returns:
the encoding name.

getAvailableLocales

public java.util.Vector getAvailableLocales(java.lang.String clientLocale)
Gets all the Locales that the current engine supports. If clientLocale already exists in Locale lists, it is at the index zero.

Parameters:
clientLocale - Specifies the priority-ranked client's Locale.
Returns:
a list of all installed locales. Each element is the programatic name of the entire locale, with the language, country and variant separated by underbars. Language is always lower case, and country is always upper case. If the language is missing, the string will begin with an underbar. If both the language and country fields are missing, this function will return the empty string, even if the variant field is filled in (you can't have a locale with just a variant-- the variant must accompany a valid language or country code). Examples: "en", "de_DE", "_GB", "en_US_WIN", "de__POSIX", and "fr__MAC".

setTimeZone

public void setTimeZone(java.util.TimeZone curTimeZone)
Sets the new time zone of Engine Bean.

Parameters:
curTimeZone - The new time zone of Engine Bean.

setTimeZone

public void setTimeZone(java.lang.String timeZone)
Sets the new time zone of Engine Bean by the given TimeZone ID.

Parameters:
timeZone - The ID for a TimeZone, which can be an abbreviation like "PST", a full name like "America/Los_Angeles", or a custom ID like "GMT-8:00".
Note that the support of abbreviations is for JDK 1.1.x compatibility only and full names should be used.

setClientName

public void setClientName(java.lang.String name)
Sets the client name of Engine Bean.

Parameters:
name - The client name. If the engine is used by JReport Server, the client name is the client machine name as request.

getClientName

public java.lang.String getClientName()
Gets the client name of Engine Bean.

Returns:
the set client name.

setTempPath

public void setTempPath(java.lang.String sTempPath)
Sets the temporary path of Engine Bean.

Parameters:
sTempPath - The temporary path(absolute path) that the temporary file will be generated in.

getTempPath

public java.lang.String getTempPath()
Gets the temporary path of Engine Bean.

Returns:
the temporary path (absolute path) of Engine Bean.

setTemplatePath

public void setTemplatePath(java.lang.String sTemplatePath)
Sets the template path.

Parameters:
sTemplatePath - The template path(absolute path).

setXSDFile

public void setXSDFile(java.lang.String sFilename)
Deprecated. 

Sets the report template xsd file.

Parameters:
sFilename - The template xsd file name(absolute path).

getXSDFile

public java.lang.String getXSDFile()
Deprecated. 

Gets the report template xsd file.


getTemplatePath

public java.lang.String getTemplatePath()
Deprecated. 

Gets the template path.

Returns:
the template path.

setHelpPath

public void setHelpPath(java.lang.String sHelpPath)
Sets the help path.

Parameters:
sHelpPath - The help path(absolute path).

getHelpPath

public java.lang.String getHelpPath()
Gets the help path.


getReportHome

public java.lang.String getReportHome()
Gets the report home path where the report.ini and other JReport system files exist.

Returns:
the report home path where the report.ini and other JReport system files exist.

setReportHome

public void setReportHome(java.lang.String reportHome)
Sets the report home path where the report.ini and other JReport system files exist.

Parameters:
reportHome - The home path where the report.ini and other JReport system files exist.

getReportName

public java.lang.String getReportName()
Gets the file name of the reportset.

Returns:
the set file name of the reportset.

setReportName

public void setReportName(java.lang.String reportName)
Sets the file name of the reportset.

Parameters:
reportName - The full path file name of the reportset.

setCatName

public void setCatName(java.lang.String catName)
Sets the file name of the JReport catalog.

Parameters:
catName - The full path file name of the catalog.

getCatName

public java.lang.String getCatName()
Gets the file name of the JReport catalog.

Returns:
the set file name of the JReport catalog.

setSID

public void setSID(java.lang.String sid)
Sets the security ID of Page Level Security setting.

Parameters:
sid - The security id defined in Page Level Security setting.

setPageNumbers

public void setPageNumbers(int[] pageNums)
Sets the page numbers array filtered by Page Level Security setting.

Parameters:
pageNums - An int array of the page numbers of the report result.

getPageNumbers

public int[] getPageNumbers()
Gets the page numbers array filtered by Page Level Security setting.

Returns:
the int array of the page numbers.

getSID

public java.lang.String getSID()
Gets the security ID of Page Level Security.

Returns:
the security ID.

hasPageSecurity

public boolean hasPageSecurity()
Checks whether the current report defines the Page Level Security or not.

Returns:
true if the current report defines the Page Level Security; false otherwise.

hasPageSecurity

public boolean hasPageSecurity(java.lang.String rptName,
                               java.lang.String viewName)
Checks whether the given report defines the Page Level Security or not.

Parameters:
rptName - Indicates the instance name of the report in the reportset.
viewName - Indicates the instance name of the view of the report in the reportset. Since there is only one view of the report currently, it can be null.
Returns:
true if the report defines the Page Level Security; false otherwise.

getPageOrientation

public int getPageOrientation()
Gets the page orientation setting of the current report's engine.

Returns:
LANDSCAPE, PORTRAIT or -1(Unknown).

getParamValues

public java.lang.String getParamValues()
Gets the parameters' values that are set.

Returns:
paramValues The string contains the parameter name/value pairs and they are separated by commas (',').

setParamValues

public void setParamValues(java.lang.String paramValues)
Sets the parameters' values used in the reportset.

Parameters:
paramValues - The string contains the parameter name/value pairs and they are separated by commas (',').
E.g, "Parameter1=Country, Parameter2=5"

getParamFile

public java.lang.String getParamFile()
Sets the name of the parameter file that stores the parameters and their values.

Returns:
the filename of the parameter value file. This will be ignored if paramValues are specified.

setParamFile

public void setParamFile(java.lang.String paramFile)
Sets the filename of the parameter value file.

Every parameter name and value pair occupies one line in the file (except when a line ends with \. See below). The name and value are separated by an equal sign '=' (if it exists), and the name is always on the left side and the value on the right side.

More rules:

1. All whitespace characters around the name will be ignored, but whitespace characters around the value will not be skipped.

2. This rule only applies to those lines whose line break occurs within the value string. If a line ends with \, then the following line, if it exists, is treated as a continuing line. So that the value string of the current line (without the last '\'), a new line character ('\n'), and the string of the next line will be concatenated together. But if a line ends with "\\", "\\" will be treated as the termination character of the value string and a single '\' will be appended to the value.

3. This rule only applies to name expression. If an equal sign is followed by "\\", this string will be treated as a part of the parameter name instead of a separator character. For example, "a\\=b=c+d" will be treated as: the name is "a=b", and the value is "c+d".

Parameters:
paramFile - The name of the parameter values file. This will be ignored if the paramValues are specified.

setParamValues

public void setParamValues(java.util.Properties params)
Sets the parameter values of the parameters used in the reportset.

Parameters:
params - Property object contains the parameter values. The key is the parameter name, and the value is String format value of the parameter.

setParamValueDescs

public void setParamValueDescs(java.util.Map<java.lang.String,jet.util.ParameterValueDesc> params)
Sets the parameter values of the parameters used in the reportset.

Parameters:
params - The object contains the parameter name and its values. The key is the parameter name, and the value is the ParameterValueDesc which contains the parameter values and its descriptions.

getResultFile

public java.lang.String getResultFile()
Gets the file name of the JReport result file which will be generated by JReport Engine Bean.

Returns:
the file name of the JReport result file.

setResultFile

public void setResultFile(java.lang.String resultFile)
Specifies the file name of the JReport result file(.rst) which will be generated by JReport Engine Bean.

Parameters:
resultFile - The file name of the JReport result file.
See Also:
runReport(), runReport(boolean)

setResultSet

public void setResultSet(java.lang.String cqrName)
Sets the Cache Query Result(CQR) of the JReport engine. The CQR is the prestored data of a query.

Parameters:
cqrName - The name of the Cache Query Result file.

getResultSet

public java.lang.String getResultSet(java.lang.String url)
Gets the url of the Cache Query Result(CQR) that has been set for the JReport Engine Bean.


setDataDriver

public void setDataDriver(java.lang.String url)
Sets the data driver of the report with single dataset.

Parameters:
url - The data driver of the report dataset. This will set a runtime data driver for the engine. The url is defined as:
URL := scheme schemeDelimiter className [";" parameters]
Scheme := "jrquery" | "catalogQuery"
schemeDelimiter := ":/"
className := string specify the class name
parameters := parameter | parameter ";" parameters
For example:
jrquery:/jet.universe.resultfile.UResultFileResultSet;D:\CachedQuery
or jrquery:/AddressListDataSource;c:\AddressList.txt.
If the url starts with the schema "CatalogQuery", the data driver of the dataset will be ignored.

setDataDriver

public void setDataDriver(java.lang.String url,
                          java.lang.String dataSetName)
Sets the data driver of the given dataset.

Parameters:
url - The data driver of the report dataset. This will set a runtime data driver for the engine. The url is defined as:
URL := scheme schemeDelimiter className [";" parameters]
Scheme := "jrquery" | "catalogQuery"
schemeDelimiter := ":/"
className := string specify the class name
parameters := parameter | parameter ";" parameters
For example:
jrquery:/jet.universe.resultfile.UResultFileResultSet;D:\CachedQuery
or jrquery:/AddressListDataSource;c:\AddressList.txt.
If the url starts with schema "CatalogQuery", the data driver of the dataset will be ignored.

getDataDriver

public java.lang.String getDataDriver()
Gets the data driver which is set for Engine Bean.


getLoadReport

public java.lang.String getLoadReport()
Deprecated. 

Gets the loaded report flag. The flag indicates whether the report is run. If the flag is no(case insensitive), it means the engine does not run the report; otherwise it runs the report.

Returns:
String of load report flag

setLoadReport

public void setLoadReport(java.lang.String loadReport)
Deprecated. 

Sets whether to enable/disable the report to be run.

Parameters:
loadReport - A String. If it not equals "no"(case insensitive), then the report will be run.

setThrowException

public void setThrowException(boolean isThrowException)
Sets whether or not to throw an exception from JReport Engine Bean.

Parameters:
isThrowException - true if it throws an exception from JReport Engine Bean when an error occurs in JReport engine; false, if the Engine Bean only logs the error.

getThrowException

public boolean getThrowException()
Gets the status of whether or not to throw exception from JReport Engine Bean when an error occurs in JReport engine.

Returns:
true if it throws an exception from JReport Engine Bean when an error occurs in JReport engine; false otherwise.

getThrowable

public java.lang.Throwable getThrowable()
Gets the Throwable error during the engine running period.

Returns:
the Throwable object(Error/Exception). If the error occurs while running the report, then returns this error, otherwise return null.

runReport

public void runReport(boolean genRst)
Loads the given reportset's template and generates the reports' results. If the reportset has several reports, all the reports, except the reports which are marked as "closed", will be run.

Parameters:
genRst - If true, it will generate a ".rst" file after the report is run; if false, it only generates the reports' results. The result file will be generated in the path specified by SetResultFile or along with the reportset if the result file name is not set.
See Also:
setCatName(String), setReportName(String), setResultFile(String)

getReportCommunicator

public Communicator getReportCommunicator()
Gets the Communicator of this report. The Communicator is a class defined by JReport. This method will launch to run JReport Engine Bean, but do not save the result to the result file.

See Also:
JRResultViewer.setCommunicator(jet.datastream.Communicator)

waitForEngineFinish

public void waitForEngineFinish()
Waits until the engine process is successful. It is only used for multi-thread mode.


save

public boolean save(java.lang.String resultFileName)
             throws java.lang.Exception
Saves the current report's result to a JReport Result file (RST file). Note: It needs to invoke runCurrentReport or other methods like it to generate a report result before this can be called.

Parameters:
resultFileName - The full path file name of the JReport Result file (RST file).
Returns:
true if the JReport Result file is saved successfully; false,if there is no result that can be saved.
Throws:
java.lang.Exception - if an unexpected error occurs during the saving process.

getTotalPageNumber

public int getTotalPageNumber()
Gets the number of total pages of the Current report's result. Note: It needs to invoke runCurrentReport or other methods like it to generate the report result before this can be called.

Returns:
the number of the total pages of the report's result; -1, if there is no proper report's result.

printReport

public void printReport()
Prints the report's result by printer.


printReport

public void printReport(java.lang.Object printJob,
                        java.lang.Object pageFormat,
                        boolean bInteractive,
                        boolean bInBackground,
                        boolean bUseJDK11)
Prints the report's result by printer.

Parameters:
printJob - The print job of this print action. JReport Engine Bean supports both JDK11 and JDK12 print model. If JDK11 print model is to be used, the job is java.awt.PrintJob; if JDK12 print model is to be used, the job is java.awt.print.PrinterJob.
pageFormat - The pageFormat of PrinterJob of this print action. It is needed if and only if it prints in JDK12 model.
bInteractive - Indicates whether or not to pop up the print setup dialog in the host. If true, the print setup dialog will be shown; false otherwise.
bInBackground - Indicates whether or not to pop up the printing status dialog in the host. If true, the printing status dialog will be shown; false otherwise.
bUseJDK11 - Indicates to print in JDK11 mode or JDK12 mode. If true, it prints in JDK11 mode; false, it prints in JDK12 mode. The JDK11 print mode is quick in speed but the print quality is not guaranteed. The JDK12 mode prints with satisfactory result, even for a gif file, but it is slow in speed.
For example, if bUseJDK11 is false, it runs like this:
                                                PrinterJob printJob = PrinterJob.getPrinterJob();
                                                bean.printReport(printJob, printJob.defaultPage(), false, false, false);

printReport

public void printReport(java.lang.Object printJob,
                        java.lang.Object pageFormat,
                        boolean bInteractive,
                        boolean bInBackground,
                        boolean bUseJDK11,
                        boolean bSeparateLargePage)
Prints the report's result by printer.

Parameters:
printJob - The print job of this print action. JReport Engine Bean supports both JDK11 and JDK12 print model. If JDK11 print model is to be used, the job is java.awt.PrintJob; if JDK12 print model is to be used, the job is java.awt.print.PrinterJob.
pageFormat - The pageFormat of PrinterJob of this print action. It is needed if and only if it prints in JDK12 model.
bInteractive - Indicates whether or not to pop up the print setup dialog in the host. If true, the print setup dialog will be shown; false otherwise.
bInBackground - Indicates whether or not to pop up the printing status dialog in the host. If true, the printing status dialog will be shown; false otherwise.
bUseJDK11 - Indicates to print in JDK11 mode or JDK12 mode. If true, it prints in JDK11 mode; false, it prints in JDK12 mode. The JDK11 print mode is quick in speed but the print quality is not guaranteed. The JDK12 mode prints with satisfactory result, even for a gif file, but it is slow in speed.
For example, if bUseJDK11 is false, it runs like this:
                                                PrinterJob printJob = PrinterJob.getPrinterJob();
                                                bean.printReport(printJob, printJob.defaultPage(), false, false, false);
bSeparateLargePage - Indicates whether or not to separate one large page if the report page size is larger than the print paper size. If true, when the report's page size is larger than the printer's paper size, the report will be printed as multiple pages serially, which means to seperate the large page of the report automatically.
If it is set to true for JDK1.2 or higher JDK version, the PageFormat dialog will pop up in the host. In this dialog, you can choose the page format which you want to print with. Note: This print option is not recommended. It may cause some unexpected errors. E.g, an extra blank page maybe printed out.

printReport

public void printReport(java.lang.Object printJob,
                        java.lang.Object pageFormat,
                        boolean bInteractive,
                        boolean bInBackground,
                        boolean bUseJDK11,
                        boolean bSeparateLargePage,
                        java.lang.String jobName)
Prints the report's result by printer.

Parameters:
printJob - The print job of this print action. JReport Engine Bean supports both JDK11 and JDK12 print model. If JDK11 print model is to be used, the job is java.awt.PrintJob; if JDK12 print model is to be used, the job is java.awt.print.PrinterJob.
pageFormat - The pageFormat of PrinterJob of this print action. It is needed if and only if it prints in JDK12 model.
bInteractive - Indicates whether or not to pop up the print setup dialog in the host. If true, the print setup dialog will be shown; false otherwise.
bInBackground - Indicates whether or not to pop up the printing status dialog in the host. If true, the printing status dialog will be shown; false otherwise.
bUseJDK11 - Indicates to print in JDK11 mode or JDK12 mode. If true, it prints in JDK11 mode; false, it prints in JDK12 mode. The JDK11 print mode is quick in speed but the print quality is not guaranteed. The JDK12 mode prints with satisfactory result, even for a gif file, but it is slow in speed.
For example, if bUseJDK11 is false, it runs likes this:
                                                PrinterJob printJob = PrinterJob.getPrinterJob();
                                                bean.printReport(printJob, printJob.defaultPage(), false, false, false);
bSeparateLargePage - Indicates whether or not to separate one large page if the report page size is larger than the print paper size. If true, when the report's page size is larger than the printer's paper size, the report will be printed as multiple pages serially, which means to seperate the large page of the report automatically.
If it is set to true for JDK1.2 or higher JDK version, the PageFormat dialog will pop up in the host. In this dialog, you can choose the page format which you want to print with. Note: This print option is not recommended. It may cause some unexpected errors. E.g, an extra blank page maybe printed out.
jobName - Specifies the name of the print process.

printReport

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)
Prints the report's result by printer.

Parameters:
printJob - The print job of this print action. JReport Engine Bean supports both JDK11 and JDK12 print model, if JDK11 print model is to be used, the job is java.awt.PrintJob; if JDK12 print model is to be used, the job is java.awt.print.PrinterJob.
pageFormat - The pageFormat of PrinterJob of this print action. It is needed if and only if it prints in JDK12 model.
bInteractive - Indicates whether or not to pop up the print setup dialog in the host. If true, the print setup dialog will be shown; false otherwise.
bInBackground - Indicates whether or not to pop up the printing status dialog in the host. If true, the printing status dialog will be shown; false otherwise.
bUseJDK11 - Indicates to prints in JDK11 mode or JDK12 mode. If true, it prints in JDK11 mode; false, it prints in JDK12 mode. The JDK11 print mode is quick in speed but the print quality is not guaranteed. The JDK12 mode prints with satisfactory result, even for a gif file, but it is slow in speed.
For example, if bUseJDK11 is false, it runs like this:
                                                PrinterJob printJob = PrinterJob.getPrinterJob();
                                                bean.printReport(printJob, printJob.defaultPage(), false, false, false);
bSeparateLargePage - Indicates whether or not to separate one large page if the report page size is larger than the print paper size. If true, when the report's page size is larger than the printer's paper size, the report will be printed as multiple pages serially, which means to seperate the large page of the report automatically.
If it is set to true for JDK1.2 or higher JDK version, the PageFormat dialog will pop up in the host. In this dialog, you can choose the page format which you want to print with. Note: This print option is not recommended. It may cause some unexpected errors. E.g, an extra blank page maybe printed out.
jobName - Specifies the name of the print process.
printer - Specifies the URL of the network printer.

printReport

public void printReport(java.lang.Object job,
                        boolean bInteractive,
                        java.lang.Object pageFormat,
                        boolean bInBackground,
                        JReportPrintListener jreportprintlistener,
                        int useJDK_X,
                        java.lang.String jobName,
                        java.util.Vector attributeInfo,
                        java.lang.String printer)
                 throws jet.export.print.NoSuchPrintAttributeException
Prints the report's result by printer.

Parameters:
printJob - The print job of this print action. JReport Engine Bean supports both JDK11 and JDK12 print model, if JDK11 print model is to be used, the job is java.awt.PrintJob; if JDK12 print model is to be used, the job is java.awt.print.PrinterJob.
pageFormat - The pageFormat of PrinterJob of this print action. It is needed if and only if it prints in JDK12 model.
bInteractive - Indicates whether or not to pop up the print setup dialog in the host. If true, the print setup dialog will be shown; false otherwise.
bInBackground - Indicates whether or not to pop up the printing status dialog in the host. If true, the printing status dialog will be shown; false otherwise.
useJDK_X - Indicates to prints in JDK11 mode , JDK12 mode, or JDK14 mode. The JDK11 print mode is quick in speed but the print quality is not guaranteed. The JDK12 mode prints with satisfactory result, even for a gif file, but it is slow in speed. The JDK14 mode prints with satisfactory result and supports more print options, like multi-paper tray.
bSeparateLargePage - Indicates whether or not to separate one large page if the report page size is larger than the print paper size. If true, when the report's page size is larger than the printer's paper size, the report will be printed as multiple pages serially, which means to separate. the large page of the report automatically.
If it is set to true for JDK1.2 or higher JDK version, the PageFormat dialog will pop up in the host. In this dialog, you can choose the page format which you want to print with. Note: This print option is not recommended. It may cause some unexpected errors. E.g, an extra blank page maybe printed out.
jobName - Specifies the name of the print process.
printer - Specifies the URL of the network printer.
attributeInfo - Indicates the list of the printer options. Each element of the String is defined in PrintConfig. For example:
PrinterJob printJob = PrinterJob.getPrinterJob();
Vector attributeInfo = new Vector();
attributeInfo.add(PrintConfig.TRAY_MANUAL);
attributeInfo.add(PrintConfig.ORIENTATION_PORTRAIT);
bean.printReport(printJob, true, printJob.defaultPage(), false, null, JREngine.JDK14, "JReport print", attributeInfo, "\\\\XXX.XXX.XXX.XXX\\Samsung SCX-5x12 Series PCL 6");
Throws:
jet.export.print.NoSuchPrintAttributeException
See Also:
JDK11, JDK12, JDK14, getAllPrinters()

printReport

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 jet.export.print.NoSuchPrintAttributeException
Prints the report's result by printer.

Parameters:
info - The report information of the printing task.
printJob - The print job of this print action. JReport Engine Bean supports both JDK11 and JDK12 print model, if JDK11 print model is to be used, the job is java.awt.PrintJob; if JDK12 print model is to be used, the job is java.awt.print.PrinterJob.
pageFormat - The pageFormat of PrinterJob of this print action. It is needed if and only if it prints in JDK12 model.
bInteractive - Indicates whether or not to pop up the print setup dialog in the host. If true, the print setup dialog will be shown; false otherwise.
bInBackground - Indicates whether or not to pop up the printing status dialog in the host. If true, the printing status dialog will be shown; false otherwise.
useJDK_X - Indicates to prints in JDK11 mode , JDK12 mode, or JDK14 mode. The JDK11 print mode is quick in speed but the print quality is not guaranteed. The JDK12 mode prints with satisfactory result, even for a gif file, but it is slow in speed. The JDK14 mode prints with satisfactory result and supports more printing options, like multi-paper tray.
bSeparateLargePage - Indicates whether or not to separate one large page if the report page size is larger than the print paper size. If true, when the report's page size is larger than the printer's paper size, the report will be printed as multiple pages serially, which means to separate the large page of the report automatically.
If it is set to true for JDK1.2 or higher JDK version, the PageFormat dialog will pop up in the host. In this dialog, you can choose the page format which you want to print with. Note: This print option is not recommended. It may cause some unexpected errors. E.g, an extra blank page maybe printed out.
jobName - Specifies the name of the print process.
printer - Specifies the URL of the network printer.
attributeInfo - Indicates the list of the printer options. Each element of the String is defined in PrintConfig. For example:
PrinterJob printJob = PrinterJob.getPrinterJob();
Vector attributeInfo = new Vector();
attributeInfo.add(PrintConfig.TRAY_MANUAL);
attributeInfo.add(PrintConfig.ORIENTATION_PORTRAIT);
bean.printReport(printJob, true, printJob.defaultPage(), false, null, JREngine.JDK14, "JReport print", attributeInfo, "\\\\XXX.XXX.XXX.XXX\\Samsung SCX-5x12 Series PCL 6");
Throws:
jet.export.print.NoSuchPrintAttributeException
See Also:
JDK11, JDK12, JDK14, getAllPrinters()

getPrintStatus

public java.lang.String getPrintStatus()
Gets the print status after printing, including: "No print job", "Printing", "Busy", "No report load", "OK", and "Error!".


setPrintStatus

public void setPrintStatus()
Sets the print status as "Printing". It is used when printing background.


ExportToPageable

public java.awt.print.Pageable ExportToPageable()
Sets the default resolution as 72 into Communicator for the printer and returns it.

Returns:
Communicator

exit

public void exit()
Exits from JReport Engine Bean. It stops the running engines, releases the loaded catalog and reportset, deletes temp files, and kills all threads of the Engine Bean.

Specified by:
exit in interface jet.rptengine.ExportFinishListener

exit

public void exit(int timeout)
Exits from JReport Engine Bean. It stops the running engines, releases the loaded catalog and reportset, deletes temp files, and stops and kills all threads of the Engine Bean.

Parameters:
timeout - The timeout in milliseconds. Engine Bean will stop and kill all threads after the timeout if there are engines that are still running.

getCommunicator

public Communicator getCommunicator(java.lang.String filename,
                                    int[] pageNums)
                             throws java.io.IOException
Gets the communicator from the JReport Result file (RST file).

Parameters:
filename - The result file name. It is a full path file name.
pageNums - An int array of page numbers, only loading the specified pages of the result.
Returns:
an instance of the class PJFCommunicator.
Throws:
java.io.IOException

getCommunicator

public Communicator getCommunicator(java.lang.String filename,
                                    int[] pageNums,
                                    java.lang.String rptName,
                                    java.lang.String viewName)
                             throws java.io.IOException
Gets the communicator from the JReport Result file (RST file).

Parameters:
filename - The result file name. It is a full path file name.
pageNums - An int array of page numbers, only loading the specified pages of the result.
rptName - The instance name of the report whose result will be loaded.
viewName - The instance name of the view whose result will be loaded. Since there is only one view of the report currently, it can be null.
Returns:
an instance of the class PJFCommunicator.
Throws:
java.io.IOException

stopReport

public void stopReport()
Deprecated. Replaced by stopReportSet()

Stops running the report.

Specified by:
stopReport in interface jet.rptengine.ExportFinishListener

stopReportSet

public void stopReportSet()
Stops all running engines.


stopReport

public void stopReport(java.lang.String[] reports,
                       java.util.Vector[] views)
Stops all running engines specified by the reports and views.

Parameters:
reports - The instance names of the reports.
views - The instance names of the views. Since there is only one view of the report currently, it can be null.

stopReport

public void stopReport(java.lang.String report,
                       java.lang.String view)
Stops the running engine specified by the report and view.

Parameters:
report - The instance names of the reports.
view - The instance name of the views. Since there is only one view of the report currently, it can be null.

setShowInfoLevel

public void setShowInfoLevel(int level)
Deprecated. The new setting of JReport log is defined in %install root%\bin\LogConfig.properties.

Sets the debug level of the log.

Parameters:
level - The debug level, for example, vDebug | vError.

closeLog

public void closeLog()
Deprecated. The new setting of JReport log is defined in %install root%\bin\LogConfig.properties.

Closes the log stream.


setLogFile

public boolean setLogFile(java.lang.String fileName)
Resets the new log file.

Parameters:
fileName - The log's file name

LogFileName specifies where the debug, error and other information will be output. LogFileName contains both the path and the file's names. 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.

Returns:
true if the log file is changed successfully; false otherwise.

getStatus

public java.lang.String getStatus()
Gets the status of running engines. It is not a multi-thread safe method. For example, if the user sets EngineBean to multi-thread when running, it maybe return the status information before the engine finishes. To resolve this issue, the user may set the engine to SingleThread by setSingleThread(true);


getReason

public java.lang.String getReason()
Gets the detail error message while detecting the engine error.

Returns:
the String description of the error message.

hasParameter

public boolean hasParameter()
Checks whether the given reportset has parameters or not. It needs to invoke getReportParams() or runReport() first.

Returns:
true if the reportset has parameters; false otherwise.

getStyleGroupNames

public java.util.Vector getStyleGroupNames()
Gets all available style group names.

Returns:
the list of the style group names.

getReportParams

public java.util.Vector getReportParams()
                                 throws java.lang.Exception
Gets parameters used by the given reportset.

Returns:
the vector that contains ParamDesc objects.
Throws:
java.lang.Exception
See Also:
setCatName(String), setReportName(String)

getReportParams

public java.util.Vector getReportParams(int status)
                                 throws java.lang.Exception
Gets parameters used by the given reports in the reportset.

Parameters:
status - Indicates the status of the reports. It is RPT_STATUS_CURRENT, RPT_STATUS_OPEN or RPT_STATUS_ALL.
Returns:
the vector that contains ParamDesc objects.
Throws:
java.lang.Exception
See Also:
setCatName(String), setReportName(String)

getReportParams

public java.util.Vector getReportParams(java.util.Vector reportNames)
                                 throws java.lang.Exception
Gets parameters used by the given reports of the reportset.

Parameters:
reportNames - Indicates the instance name list of reports.
Returns:
the vector that contains ParamDesc objects.
Throws:
java.lang.Exception
See Also:
setCatName(String), setReportName(String)

paramValueChanged

public java.util.Vector paramValueChanged(java.lang.String paramName,
                                          java.lang.String paramValue)
Gets the related Parameters while changing the value of a cascading parameter. If the value of a cascading parameter is changed, other parameters whose values refer to the changed parameter also need to re-fetch values according to the changed value. Note: if and only if the parameter which supports single value is changed, this method takes effect.

Specified by:
paramValueChanged in interface jet.util.ParameterChangedListener
Parameters:
paramName - Indicates the mapping name of the parameter whose value is changed.
paramValue - Indicates the changed String format value of the parameter.
Returns:
the ParamDescs of the related parameters.
See Also:
paramValueChanged(String, String[])

paramValueChanged

public java.util.Vector paramValueChanged(java.lang.String paramName,
                                          java.lang.String[] paramValues)
                                   throws jet.exception.InvalidParameterException
Gets the related Parameters while changing the value of a cascading parameter. If the value of a cascading parameter is changed, other parameters whose values refer to changed parameter also need re-fetch values according to the changed value. Note: if and only if the parameter which supports multi-values is changed, this method takes effect.

Specified by:
paramValueChanged in interface jet.util.ExtParameterChangedListener
Returns:
the ParamDescs of the related parameters.
Throws:
jet.exception.InvalidParameterException
See Also:
paramValueChanged(String, String)

paramValueChanged

public java.util.Vector<ParamDesc> paramValueChanged(java.lang.String paramName,
                                                     jet.util.ParameterValueDesc paramValue)
                                              throws jet.exception.InvalidParameterException
Gets the related Parameters while changing the value of a cascading parameter or a Parameters type parameter. If the value of a cascading parameter is changed, other parameters whose values refer to changed parameter also need re-fetch values according to the changed value. If the value of the Parameters type parameter changed, the parameter list will be retrieved according the value. Note:

Specified by:
paramValueChanged in interface jet.util.ExtParameterChangedListener
Returns:
relatived ParamDescs. if the changed parameter is a Parameters type parameter, return parameters according to the value of parameter used to control other parameters. Otherwise return related cascading parameters, include the imported parameters by query/procedure/uds and the query bind its column.
Throws:
jet.exception.InvalidParameterException - 1. If the format of value is invalid; 2. if the new values of parameter are more than one when the parameter does not support multi-values. 3. the new value is expression and changed parameter is bind column or parameters type.

getParamDescs

public java.util.Hashtable getParamDescs()
Gets parameters used by the given reports of the reportset.

Parameters:
reportNames - Indicates the instance name list of reports.
Returns:
the Hashtable that contains ParamDesc objects. The key is the mapping name of the parameter, and the value is ParamDesc>.
See Also:
setCatName(String), setReportName(String)

exportToRst

public boolean exportToRst(java.lang.String loadRstFileName,
                           java.lang.String rstFileName)
Loads the JReport Result file (RST file) and saves it as another one.

Parameters:
loadRstFileName - Indicates the source file name with full path.
rstFileName - Indicates the target file name with full path.
Returns:
true if the file is saved successfully; false

exportToRst

public boolean exportToRst(java.lang.String rstFileName)
Saves the current report result to a JReport Result file (RST file).

Parameters:
rstFileName - Indicates the JReport Result file (RST file)'s file name with full path.
Returns:
true if the result is exported successfully; false otherwise.

exportToRst

public boolean exportToRst(java.util.Map reportInfo,
                           java.lang.String rstFileName,
                           boolean isZip)
Saves the current report result to a JReport Result file (RST file).

Parameters:
rstFileName - Indicates the JReport Result file (RST file)'s file name with full path.
reportInfo - Indicates the report's information to be exported. The key is the report instance name; the value is a view name vector, and each element of the vector is the view name string of the report.
Returns:
true if the result is exported successfully; false otherwise.

exportToHtml

public boolean exportToHtml(java.lang.String rstFileName,
                            java.lang.String htmlFileName)
Exports JReport result file (RST file) to HTML file.

Parameters:
rstFileName - The filename of JReport result file with full path.
htmlFileName - The HTML filename with full path.
Returns:
true if the result is exported successfully; false otherwise.

exportToHtml

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)
Exports JReport result file (RST file) to HTML file.

Parameters:
rstFileName - The filename of JReport result file with full path.
htmlFileName - The HTML filename with full path.
bChartApplet - Indicates whether or not to export the Chart of the report result as an applet in html file.
isMultiFile - Indicates whether or not to export the report result to an HTML file or to multiple files.
bUsingTable - Indicates whether or not to export HTML in table format.
bHyperlink - Indicates whether or not to generate hyperlinks in HTML files.
bPageNumber - Indicates whether or not to generate page numbers in the header/footer of HTML contents.
bAbsolute - Indicates the font size is absolute or relative.
iBrowser - Indicates the browser is IE or NETSCAPE. The value of the browser must be IE or NETSCAPE.
Returns:
true if the result is exported successfully; false otherwise.

exportToHtml

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)
Exports JReport result file (RST file) to HTML file.

Parameters:
rstFileName - The filename of JReport result file with full path.
htmlFileName - The HTML filename with full path.
bChartApplet - Indicates whether or not to export the Chart of the report result as an applet in html file.
isMultiFile - Indicates whether or not to export the report result to an HTML file or to multiple files.
bUsingTable - Indicates whether or not to export HTML in table format.
bHyperlink - Indicates whether or not to generate hyperlinks in HTML files.
bPageNumber - Indicates whether or not to generate page numbers in the header/footer of HTML contents.
bAbsolute - Indicates the font size is absolute or relative.
iBrowser - Indicates the browser is IE or NETSCAPE. The value of the browser must be IE or NETSCAPE.
bincdrilldownfile - Indicates whether or not to generate the drilldown html files in the file list.
Returns:
true if the result was exported successfully; false otherwise.

exportToHtml

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)
Exports JReport result file (RST file) to HTML file.

Parameters:
rstFileName - The filename of JReport result file with full path.
htmlFileName - The HTML filename with full path.
bChartApplet - Indicates whether or not to export the Chart of the report result as an applet in html file.
isMultiFile - Indicates whether or not to export the report result to an HTML file or to multiple files.
bUsingTable - Indicates whether or not to export HTML in table format.
bHyperlink - Indicates whether or not to generate hyperlinks in HTML files.
bPageNumber - Indicates whether or not to generate page numbers in the header/footer of HTML contents.
bAbsolute - Indicates the font size is absolute or relative.
iBrowser - Indicates the browser is IE or NETSCAPE. The value of the browser must be IE or NETSCAPE.
bincdrilldownfile - Indicates whether or not to generate the drilldown html files in the file list.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the HTML files.
Returns:
true if the result was exported successfully; false otherwise.

exportToHtml

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)
Exports JReport result file (RST file) to HTML file.

Parameters:
rstFileName - The filename of JReport result file with full path.
htmlFileName - The HTML filename with full path.
bChartApplet - Indicates whether or not to export the Chart of the report result as an applet in html file.
isMultiFile - Indicates whether or not to export the report result to an HTML file or to multiple files.
bUsingTable - Indicates whether or not to export HTML in table format.
bHyperlink - Indicates whether or not to generate hyperlinks in HTML files.
bPageNumber - Indicates whether or not to generate page numbers in the header/footer of HTML contents.
bAbsolute - Indicates the font size is absolute or relative.
iBrowser - Indicates the browser is IE or NETSCAPE. The value of the browser must be IE or NETSCAPE.
bincdrilldownfile - Indicates whether or not to generate the drilldown html files in the file list.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the HTML files.
resolution - Indicates the resolution of the HTML files to get nice outlook and layout.
Returns:
true if the result was exported successfully; false otherwise.

exportToHtml

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)
Exports JReport result file (RST file) to HTML file.

Parameters:
rstFileName - The filename of JReport result file with full path.
htmlFileName - The HTML filename with full path.
bChartApplet - Indicates whether or not to export the Chart of the report result as an applet in html file.
isMultiFile - Indicates whether or not to export the report result to an HTML file or to multiple files.
bUsingTable - Indicates whether or not to export HTML in table format.
bHyperlink - Indicates whether or not to generate hyperlinks in HTML files.
bPageNumber - Indicates whether or not to generate page numbers in the header/footer of HTML contents.
bAbsolute - Indicates the font size is absolute or relative.
iBrowser - Indicates the browser is IE or NETSCAPE. The value of the browser must be IE or NETSCAPE.
bincdrilldownfile - Indicates whether or not to generate the drilldown html files in the file list.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the HTML files.
title - Indicates the title of the HTML file.
Returns:
true if the result was exported successfully; false otherwise.

exportToHtml

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)
Exports JReport result file (RST file) to HTML file.

Parameters:
rstFileName - The filename of JReport result file with full path.
htmlFileName - The HTML filename with full path.
bChartApplet - Indicates whether or not to export the Chart of the report result as anapplet in html file.
isMultiFile - Indicates whether or not to export the report result to an HTML file or to multiple files.
bUsingTable - Indicates whether or not to export HTML in table format.
bHyperlink - Indicates whether or not to generate hyperlinks in HTML files.
bPageNumber - Indicates whether or not to generate page numbers in the header/footer of HTML contents.
bAbsolute - Indicates the font size is absolute or relative.
iBrowser - Indicates the browser is IE or NETSCAPE. The value of the browser must be IE or NETSCAPE.
bincdrilldownfile - Indicates whether or not to generate the drilldown html files in the file list.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the HTML files.
title - Indicates the title of the HTML file.
resolution - Indicates the resolution of the HTML files to get nice outlook and layout.
overflowType - Indicates the overflow type of the contents in the HTML file.
Returns:
true if the result was exported successfully; false otherwise.

exportToHtml

public boolean exportToHtml(java.lang.String htmlFileName)
Exports the JReport result of the current report to an HTML file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
htmlFileName - The HTML filename with full path.
Returns:
true if the result was exported successfully; false otherwise.

exportToHtml

public boolean exportToHtml(java.lang.String htmlFileName,
                            boolean bChartApplet,
                            boolean isMultiFile,
                            boolean bUsingTable,
                            boolean bHyperlink,
                            boolean bPageNum,
                            boolean bAbsolute,
                            int iBrowser)
Exports the JReport result of the current report to an HTML file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Specified by:
exportToHtml in interface EngineExecuter
Parameters:
htmlFileName - The HTML filename with full path.
bChartApplet - Indicates whether or not to export the Chart of the report result as an applet in html file.
isMultiFile - Indicates whether or not to export the report result to an HTML file or to multiple files.
bUsingTable - Indicates whether or not to export HTML in table format.
bHyperlink - Indicates whether or not to generate hyperlinks in HTML files.
bPageNumber - Indicates whether or not to generate page numbers in the header/footer of HTML contents.
bAbsolute - Indicates the font size is absolute or relative.
iBrowser - Indicates the browser is IE or NETSCAPE. The value of the browser must be IE or NETSCAPE.
Returns:
true if the result was exported successfully; false otherwise.

exportToHtml

public boolean exportToHtml(java.lang.String htmlFileName,
                            boolean bChartApplet,
                            boolean isMultiFile,
                            boolean bUsingTable,
                            boolean bHyperlink,
                            boolean bPageNum,
                            boolean bAbsolute,
                            int iBrowser,
                            boolean bincdrilldownfile)
Exports the JReport result of the current report to an HTML file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
htmlFileName - The HTML filename with full path.
bChartApplet - Indicates whether or not to export the Chart of the report result as an applet in html file.
isMultiFile - Indicates whether or not to export the report result to an HTML file or to multiple files.
bUsingTable - Indicates whether or not to export HTML in table format.
bHyperlink - Indicates whether or not to generate hyperlinks in HTML files.
bPageNumber - Indicates whether or not to generate page numbers in the header/footer of HTML contents.
bAbsolute - Indicates the font size is absolute or relative.
iBrowser - Indicates the browser is IE or NETSCAPE. The value of the browser must be IE or NETSCAPE.
bincdrilldownfile - Indicates whether or not to generate the drilldown html files in the file list.
overflowType - Indicates the overflow type of the contents in the HTML file.
Returns:
true if the result was exported successfully; false otherwise.

exportToHtml

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)
Exports the JReport result of the current report to an HTML file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
htmlFileName - The HTML filename with full path.
bChartApplet - Indicates whether or not to export the Chart of the report result as an applet in html file.
isMultiFile - Indicates whether or not to export the report result to an HTML file or to multiple files.
bUsingTable - Indicates whether or not to export HTML in table format.
bHyperlink - Indicates whether or not to generate hyperlinks in HTML files.
bPageNumber - Indicates whether or not to generate page numbers in the header/footer of HTML contents.
bAbsolute - Indicates the font size is absolute or relative.
iBrowser - Indicates the browser is IE or NETSCAPE. The value of the browser must be IE or NETSCAPE.
bincdrilldownfile - Indicates whether or not to generate the drilldown html files in the file list.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the HTML files.
Returns:
true if the result was exported successfully; false otherwise.

exportToHtml

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)
Exports the JReport result of the current report to an HTML file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
htmlFileName - The HTML filename with full path.
bChartApplet - Indicates whether or not to export the Chart of the report result as an applet in html file.
isMultiFile - Indicates whether or not to export the report result to an HTML file or to multiple files.
bUsingTable - Indicates whether or not to export HTML in table format.
bHyperlink - Indicates whether or not to generate hyperlinks in HTML files.
bPageNumber - Indicates whether or not to generate page numbers in the header/footer of HTML contents.
bAbsolute - Indicates the font size is absolute or relative.
iBrowser - Indicates the browser is IE or NETSCAPE. The value of the browser must be IE or NETSCAPE.
bincdrilldownfile - Indicates whether or not to generate the drilldown html files in the file list.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the HTML files.
title - Indicates the title of the HTML file.
resolution - Indicates the resolution of the HTML files to get nice outlook and layout.
Returns:
true if the result was exported successfully; false otherwise.

exportToHtml

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)
Exports the JReport result of the current report to an HTML file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
htmlFileName - The HTML filename with full path.
bChartApplet - Indicates whether or not to export the Chart of the report result as an applet in html file.
isMultiFile - Indicates whether or not to export the report result to an HTML file or to multiple files.
bUsingTable - Indicates whether or not to export HTML in table format.
bHyperlink - Indicates whether or not to generate hyperlinks in HTML files.
bPageNumber - Indicates whether or not to generate page numbers in the header/footer of HTML contents.
bAbsolute - Indicates the font size is absolute or relative.
iBrowser - Indicates the browser is IE or NETSCAPE. The value of the browser must be IE or NETSCAPE.
bincdrilldownfile - Indicates whether or not to generate the drilldown html files in the file list.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the HTML files.
title - Indicates the title of the HTML file.
resolution - Indicates the resolution of the HTML files to get nice outlook and layout.
Returns:
true if the result was exported successfully; false otherwise.

exportToHtml

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)
Exports the JReport result of the current report to an HTML file. Note: It need invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
htmlFileName - The HTML filename with full path.
bChartApplet - Indicates whether or not to export the Chart of the report result as an applet in html file.
isMultiFile - Indicates whether or not to export the report result to an HTML file or to multiple files.
bUsingTable - Indicates whether or not to export HTML in table format.
bHyperlink - Indicates whether or not to generate hyperlinks in HTML files.
bPageNumber - Indicates whether or not to generate page numbers in the header/footer of HTML contents.
bAbsolute - Indicates the font size is absolute or relative.
iBrowser - Indicates the browser is IE or NETSCAPE. The value of the browser must be IE or NETSCAPE.
bincdrilldownfile - Indicates whether or not to generate the drilldown html files in the file list.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the HTML files.
title - Indicates the title of the HTML file.
resolution - Indicates the resolution of the HTML files to get nice outlook and layout.
overflowType - Indicates the overflow type of the contents in the HTML file.
Returns:
true if the result was exported successfully; false otherwise.

exportToHtml

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)
Exports JReport result file (RST file) to HTML file.

Parameters:
rstFileName - The filename of JReport result file with full path.
htmlFileName - The HTML filename with full path.
bChartApplet - Indicates whether or not to export the Chart of the report result as an applet in html file.
isMultiFile - Indicates whether or not to export the report result to an HTML file or to multiple files.
bUsingTable - Indicates whether or not to export HTML in table format.
bHyperlink - Indicates whether or not to generate hyperlinks in HTML files.
bPageNumber - Indicates whether or not to generate page numbers in the header/footer of HTML contents.
bAbsolute - Indicates the font size is absolute or relative.
iBrowser - Indicates the browser is IE or NETSCAPE. The value of the browser must be IE or NETSCAPE.
bincdrilldownfile - Indicates whether or not to generate the drilldown html files in the file list.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the HTML files.
title - Indicates the title of the HTML file.
resolution - Indicates the resolution of the HTML files to get nice outlook and layout.
overflowType - Indicates the overflow type of the contents in the HTML file.
Returns:
true if the result was exported successfully; false otherwise.

exportToHtml

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)
Exports the JReport result of the current report to an HTML file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
htmlFileName - The HTML filename with full path.
bChartApplet - Indicates whether or not to export the Chart of the report result as an applet in html file.
isMultiFile - Indicates whether or not to export the report result to an HTML file or to multiple files.
bUsingTable - Indicates whether or not to export HTML in table format.
bHyperlink - Indicates whether or not to generate hyperlinks in HTML files.
bPageNumber - Indicates whether or not to generate page numbers in the header/footer of HTML contents.
bAbsolute - Indicates the font size is absolute or relative.
iBrowser - Indicates the browser is IE or NETSCAPE. The value of the browser must be IE or NETSCAPE.
bincdrilldownfile - Indicates whether or not to generate the drilldown html files in the file list.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the HTML files.
title - Indicates the title of the HTML file.
resolution - Indicates the resolution of the HTML files to get nice outlook and layout.
overflowType - Indicates the overflow type of the contents in the HTML file.
Returns:
true if the result was exported successfully; false otherwise.

setHtmlImageType

public void setHtmlImageType(int imageType)
Deprecated. 

Sets the image type of the chart in html format files.

See Also:
HtmlParameter.setExportImageType(int)

getAllHtmlFile

public java.util.Vector getAllHtmlFile()
Returns all html files that are generated by exportToHtml.


getAllPdfFile

public java.util.Vector getAllPdfFile()
Returns all PDF files that are generated by exportToPDF.


exportToDhtml

public boolean exportToDhtml(java.lang.String rstFileName,
                             java.lang.String htmlFileName)
Exports JReport result file (RST file) to HTML file with TOC contents.

Parameters:
rstFileName - The filename of JReport result file with full path.
htmlFileName - The HTML filename with full path.
bChartApplet - Indicates whether or not to export the Chart of the report result as an applet in html file.
isMultiFile - Indicates whether or not to export the report result to an HTML file or to multiple files.
bUsingTable - Indicates whether or not to export HTML in table format.
bHyperlink - Indicates whether or not to generate hyperlinks in HTML files.
bPageNumber - Indicates whether or not to generate page numbers in the header/footer of HTML contents.
bAbsolute - Indicates the font size is absolute or relative.
iBrowser - Indicates the browser is IE or NETSCAPE. The value of the browser must be IE or NETSCAPE.
bincdrilldownfile - Indicates whether or not to generate the drilldown html files in the file list.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the HTML files.
title - Indicates the title of the HTML file.
resolution - Indicates the resolution of the HTML files to get nice outlook and layout.
overflowType - Indicates the overflow type of the contents in the HTML file.
Returns:
true if the result was exported successfully; false otherwise.

exportToDhtml

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)
Exports JReport result file (RST file) to HTML file with TOC contents.

Parameters:
rstFileName - The filename of JReport result file with full path.
htmlFileName - The HTML filename with full path.
bChartApplet - Indicates whether or not to export the Chart of the report result as an applet in html file.
isMultiFile - Indicates whether or not to export the report result to an HTML file or to multiple files.
bUsingTable - Indicates whether or not to export HTML in table format.
bHyperlink - Indicates whether or not to generate hyperlinks in HTML files.
bPageNumber - Indicates whether or not to generate page numbers in the header/footer of HTML contents.
bAbsolute - Indicates the font size is absolute or relative.
iBrowser - Indicates the browser is IE or NETSCAPE. The value of the browser must be IE or NETSCAPE.
Returns:
true if the result was exported successfully; false otherwise.

exportToDhtml

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)
Exports JReport result file (RST file) to HTML file with TOC contents.

Parameters:
rstFileName - The filename of JReport result file with full path.
htmlFileName - The HTML filename with full path.
bChartApplet - Indicates whether or not to export the Chart of the report result as an applet in html file.
isMultiFile - Indicates whether or not to export the report result to an HTML file or to multiple files.
bUsingTable - Indicates whether or not to export HTML in table format.
bHyperlink - Indicates whether or not to generate hyperlinks in HTML files.
bPageNumber - Indicates whether or not to generate page numbers in the header/footer of HTML contents.
bAbsolute - Indicates the font size is absolute or relative.
iBrowser - Indicates the browser is IE or NETSCAPE. The value of the browser must be IE or NETSCAPE.
bincdrilldownfile - Indicates whether or not to generate the drilldown html files in the file list.
Returns:
true if the result is exported successfully; false otherwise.

exportToDhtml

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)
Exports JReport result file (RST file) to HTML file with TOC contents.

Parameters:
rstFileName - The filename of JReport result file with full path.
htmlFileName - The HTML filename with full path.
bChartApplet - Indicates whether or not to export the Chart of the report result as an applet in html file.
isMultiFile - Indicates whether or not to export the report result to an HTML file or to multiple files.
bUsingTable - Indicates whether or not to export HTML in table format.
bHyperlink - Indicates whether or not to generate hyperlinks in HTML files.
bPageNumber - Indicates whether or not to generate page numbers in the header/footer of HTML contents.
bAbsolute - Indicates the font size is absolute or relative.
iBrowser - Indicates the browser is IE or NETSCAPE. The value of the browser must be IE or NETSCAPE.
bincdrilldownfile - Indicates whether or not to generate the drilldown html files in the file list.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the HTML files.
Returns:
true if the result is exported successfully; false otherwise.

exportToDhtml

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)
Exports JReport result file (RST file) to HTML file with TOC contents.

Parameters:
rstFileName - The filename of JReport result file with full path.
htmlFileName - The HTML filename with full path.
bChartApplet - Indicates whether or not to export the Chart of rthe eport result as an applet in html file.
isMultiFile - Indicates whether or not to export the report result to an HTML file or to multiple files.
bUsingTable - Indicates whether or not to export HTML in table format.
bHyperlink - Indicates whether or not to generate hyperlinks in HTML files.
bPageNumber - Indicates whether or not to generate page numbers in the header/footer of HTML contents.
bAbsolute - Indicates the font size is absolute or relative.
iBrowser - Indicates the browser is IE or NETSCAPE. The value of the browser must be IE or NETSCAPE.
bincdrilldownfile - Indicates whether or not to generate the drilldown html files in the file list.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the HTML files.
resolution - Indicates the resolution of the HTML files to get nice outlook and layout.
Returns:
true if the result is exported successfully; false otherwise.

exportToDhtml

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)
Exports JReport result file (RST file) to HTML file with TOC contents.

Parameters:
rstFileName - The filename of JReport result file with full path.
htmlFileName - The HTML filename with full path.
bChartApplet - Indicates whether or not to export the Chart of the report result as an applet in html file.
isMultiFile - Indicates whether or not to export the report result to an HTML file or to multiple files.
bUsingTable - Indicates whether or not to export HTML in table format.
bHyperlink - Indicates whether or not to generate hyperlinks in HTML files.
bPageNumber - Indicates whether or not to generate page numbers in the header/footer of HTML contents.
bAbsolute - Indicates the font size is absolute or relative.
iBrowser - Indicates the browser is IE or NETSCAPE. The value of the browser must be IE or NETSCAPE.
bincdrilldownfile - Indicates whether or not to generate the drilldown html files in the file list.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the HTML files.
title - Indicates the title of the HTML file.
resolution - Indicates the resolution of the HTML files to get nice outlook and layout.
Returns:
true if the result is exported successfully; false otherwise.

exportToDhtml

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)
Exports JReport result file (RST file) to HTML file with TOC contents.

Parameters:
rstFileName - The filename of JReport result file with full path.
htmlFileName - The HTML filename with full path.
bChartApplet - Indicates whether or not to export the Chart of the report result as an applet in html file.
isMultiFile - Indicates whether or not to export the report result to an HTML file or to multiple files.
bUsingTable - Indicates whether or not to export HTML in table format.
bHyperlink - Indicates whether or not to generate hyperlinks in HTML files.
bPageNumber - Indicates whether or not to generate page numbers in the header/footer of HTML contents.
bAbsolute - Indicates the font size is absolute or relative.
iBrowser - Indicates the browser is IE or NETSCAPE. The value of the browser must be IE or NETSCAPE.
bincdrilldownfile - Indicates whether or not to generate the drilldown html files in the file list.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the HTML files.
title - Indicates the title of the HTML file.
resolution - Indicates the resolution of the HTML files to get nice outlook and layout.
overflowType - Indicates the overflow type of the contents in the HTML file.
Returns:
true if the result is exported successfully; false otherwise.

exportToDhtml

public boolean exportToDhtml(java.lang.String htmlFileName)
Exports the JReport result of the current report to an HTML file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
htmlFileName - The HTML filename with full path.
Returns:
true if the result is exported successfully; false otherwise.

exportToDhtml

public boolean exportToDhtml(java.lang.String htmlFileName,
                             boolean bChartApplet,
                             boolean isMultiFile,
                             boolean bUsingTable,
                             boolean bHyperlink,
                             boolean bPageNum,
                             boolean bAbsolute,
                             int iBrowser)
Exports the JReport result of the current report to an HTML file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
htmlFileName - The HTML filename with full path.
bChartApplet - Indicates whether or not to export the Chart of the report result as an applet in html file.
isMultiFile - Indicates whether or not to export the report result to an HTML file or to multiple files.
bUsingTable - Indicates whether or not to export HTML in table format.
bHyperlink - Indicates whether or not to generate hyperlinks in HTML files.
bPageNumber - Indicates whether or not to generate page numbers in the header/footer of HTML contents.
bAbsolute - Indicates the font size is absolute or relative.
iBrowser - Indicates the browser is IE or NETSCAPE. The value of the browser must be IE or NETSCAPE.
Returns:
true if the result is exported successfully; false otherwise.

exportToDhtml

public boolean exportToDhtml(java.lang.String htmlFileName,
                             boolean bChartApplet,
                             boolean isMultiFile,
                             boolean bUsingTable,
                             boolean bHyperlink,
                             boolean bPageNum,
                             boolean bAbsolute,
                             int iBrowser,
                             boolean bincdrilldownfile)
Exports the JReport result of the current report to an HTML file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
htmlFileName - The HTML filename with full path.
bChartApplet - Indicates whether or not to export the Chart of the report result as an applet in html file.
isMultiFile - Indicates whether or not to export the report result to an HTML file or to multiple files.
bUsingTable - Indicates whether or not to export HTML in table format.
bHyperlink - Indicates whether or not to generate hyperlinks in HTML files.
bPageNumber - Indicates whether or not to generate page numbers in the header/footer of HTML contents.
bAbsolute - Indicates the font size is absolute or relative.
iBrowser - Indicates the browser is IE or NETSCAPE. The value of the browser must be the IE or NETSCAPE.
bincdrilldownfile - Indicates whether or not to generate the drilldown html files in the file list.
Returns:
true if the result is exported successfully; false otherwise.

exportToDhtml

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)
Exports the JReport result of the current report to an HTML file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
htmlFileName - The HTML filename with full path.
bChartApplet - Indicates whether or not to export the Chart of the report result as an applet in html file.
isMultiFile - Indicates whether or not to export the report result to an HTML file or to multiple files.
bUsingTable - Indicates whether or not to export HTML in table format.
bHyperlink - Indicates whether or not to generate hyperlinks in HTML files.
bPageNumber - Indicates whether or not to generate page numbers in the header/footer of HTML contents.
bAbsolute - Indicates the font size is absolute or relative.
iBrowser - Indicates the browser is IE or NETSCAPE. The value of the browser must be IE or NETSCAPE.
bincdrilldownfile - Indicates whether or not to generate the drilldown html files in the file list.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the HTML files.
Returns:
true if the result is exported successfully; false otherwise.

exportToDhtml

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)
Exports the JReport result of the current report to an HTML file. Note: It need invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
htmlFileName - The HTML filename with full path.
bChartApplet - Indicates whether or not to export the Chart of the report result as an applet in html file.
isMultiFile - Indicates whether or not to export the report result to an HTML file or to multiple files.
bUsingTable - Indicates whether or not to export HTML in table format.
bHyperlink - Indicates whether or not to generate hyperlinks in HTML files.
bPageNumber - Indicates whether or not to generate page numbers in the header/footer of HTML contents.
bAbsolute - Indicates the font size is absolute or relative.
iBrowser - Indicates the browser is IE or NETSCAPE. The value of the browser must be IE or NETSCAPE.
bincdrilldownfile - Indicates whether or not to generate the drilldown html files in the file list.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the HTML files.
resolution - Indicates the resolution of the HTML files to get nice outlook and layout.
Returns:
true if the result is exported successfully; false otherwise.

exportToDhtml

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)
Exports the JReport result of the current report to an HTML file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
htmlFileName - The HTML filename with full path.
bChartApplet - Indicates whether or not to export the Chart of the report result as an applet in html file.
isMultiFile - Indicates whether or not to export the report result to an HTML file or to multiple files.
bUsingTable - Indicates whether or not to export HTML in table format.
bHyperlink - Indicates whether or not to generate hyperlinks in HTML files.
bPageNumber - Indicates whether or not to generate page numbers in the header/footer of HTML contents.
bAbsolute - Indicates the font size is absolute or relative.
iBrowser - Indicates the browser is IE or NETSCAPE. The value of the browser must be IE or NETSCAPE.
bincdrilldownfile - Indicates whether or not to generate the drilldown html files in the file list.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the HTML files.
title - Indicates the title of the HTML file.
resolution - Indicates the resolution of the HTML files to get nice outlook and layout.
Returns:
true if the result is exported successfully; false otherwise.

exportToDhtml

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)
Exports the JReport result of the current report to an HTML file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
htmlFileName - The HTML filename with full path.
bChartApplet - Indicates whether or not to export the Chart of the report result as sn applet in html file.
isMultiFile - Indicates whether or not to export the report result to an HTML file or to multiple files.
bUsingTable - Indicates whether or not to export HTML in table format.
bHyperlink - Indicates whether or not to generate hyperlinks in HTML files.
bPageNumber - Indicates whether or not to generate page numbers in the header/footer of HTML contents.
bAbsolute - Indicates the font size is absolute or relative.
iBrowser - Indicates the browser is IE or NETSCAPE. The value of the browser must be IE or NETSCAPE.
bincdrilldownfile - Indicates whether or not to generate the drilldown html files in the file list.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the HTML files.
title - Indicates the title of the HTML file.
resolution - Indicates the resolution of the HTML files to get nice outlook and layout.
overflowType - Indicates the overflow type of the contents in the HTML file.
Returns:
true if the result is exported successfully; false otherwise.

exportToPdf

public boolean exportToPdf(java.lang.String rstFileName,
                           java.lang.String pdfFileName)
Exports JReport result file (RST file) to PDF file.

Parameters:
rstFileName - The filename of JReport result file with full path.
pdfFileName - The PDF filename with full path.
Returns:
true if the result is exported successfully; false otherwise.

exportToPdf

public boolean exportToPdf(java.lang.String pdfFileName)
Exports the JReport result of the current report to a PDF file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Specified by:
exportToPdf in interface EngineExecuter
Parameters:
pdfFileName - The PDF filename with full path.
Returns:
true if the result is exported successfully; false otherwise.

exportToPdf

public boolean exportToPdf(java.io.OutputStream stream)
Exports the JReport result of the current report to the OutputStream in PDF data format. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
stream - Exports the result in PDF data format to this OutputStream.
Returns:
true if the result is exported successfully; false otherwise.

exportToPdf

public boolean exportToPdf(java.lang.String pdfFileName,
                           boolean noMargin)
Exports the JReport result of the current report to the PDF files. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
pdfFileName - The PDF filename with full path.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the PDF files.
Returns:
true if the result is exported successfully; false otherwise.

exportToPdf

public boolean exportToPdf(java.lang.String rstFileName,
                           java.lang.String pdfFileName,
                           boolean noMargin)
Exports JReport result file (RST file) to PDF file.

Parameters:
rstFileName - The filename of JReport result file with full path.
pdfFileName - The PDF filename with full path.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the PDF files.
Returns:
true if the result is exported successfully; false otherwise.

exportToPdf

public boolean exportToPdf(java.lang.String pdfFileName,
                           boolean noMargin,
                           boolean isSimPrintMode)
Exports the JReport result of the current report to the PDF files. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
pdfFileName - The PDF filename with full path.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the PDF files.
isSimPrintMode - Indicates the print mode when generating charts and barcodes. If true, it generates the charts and barcodes by Vector graphics; if false, it generates charts and barcodes by images(recommended).
Returns:
true if the result is exported successfully; false otherwise.

exportToPdf

public boolean exportToPdf(java.lang.String rstFileName,
                           java.lang.String pdfFileName,
                           boolean noMargin,
                           boolean isSimPrintMode)
Exports JReport result file (RST file) to PDF file.

Parameters:
rstFileName - The filename of JReport result file with full path.
pdfFileName - The PDF filename with full path.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the PDF files.
isSimPrintMode - Indicates the print mode when generating charts and barcodes. If true, it generates the charts and barcodes by Vector graphics; if false, it generates charts and barcodes by images(recommended).
Returns:
true if the result is exported successfully; false otherwise.

exportToPdf

public boolean exportToPdf(java.lang.String pdfFileName,
                           boolean noMargin,
                           boolean isSimPrintMode,
                           boolean iCompressImage)
Exports the JReport result of the current report to the PDF files. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
pdfFileName - The PDF filename with full path.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the PDF files.
isSimPrintMode - Indicates the print mode when generating charts and barcodes. If true, it generates the charts and barcodes by Vector graphics; if false, it generates charts and barcodes by images(recommended).
iCompressImage - Indicates the image compression ratio of the pdf file. Its value is from 1 to 100. If it does not compress the image, the value is -1.
Returns:
true if the result is exported successfully; false otherwise.

exportToPdf

public boolean exportToPdf(java.lang.String pdfFileName,
                           boolean noMargin,
                           boolean isSimPrintMode,
                           int iCompressImage,
                           boolean isTransparent)
Exports the JReport result of the current report to the PDF files. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
pdfFileName - The PDF filename with full path.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the PDF files.
isSimPrintMode - Indicates the print mode when generating charts and barcodes. If true, it generates the charts and barcodes by Vector graphics; if false, it generates charts and barcodes by images(recommended).
iCompressImage - Indicates the image compression ratio of the pdf file. Its value is from 1 to 100. If it does not compress the image, the value is -1.
isTransparent - Indicates whether the images in the PDF file are transparent or not.
Returns:
true if the result is exported successfully; false otherwise.

exportToPdf

public boolean exportToPdf(java.lang.String pdfFileName,
                           boolean noMargin,
                           boolean isSimPrintMode,
                           int iCompressImage,
                           boolean isTransparent,
                           boolean bToc,
                           boolean bDrill)
Exports the JReport result of the current report to the PDF files. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
pdfFileName - The PDF filename with full path.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the PDF files.
isSimPrintMode - Indicates the print mode when generating charts and barcodes. If true, it generates the charts and barcodes by Vector graphics; if false, it generates charts and barcodes by images(recommended).
iCompressImage - Indicates the image compression ratio of the pdf file. Its value is from 1 to 100. If it does not compress the image, the value is -1.
isTransparent - Indicates whether the images in the PDF file are transparent or not.
bToc - Indicates whether or not to generate the PDF file with Table OF Contents (TOC).
bDrill - Indicates whether or not to generate the drilldown PDF files.
Returns:
true if the result is exported successfully; false otherwise.

exportToPdf

public boolean exportToPdf(java.lang.String pdfFileName,
                           boolean noMargin,
                           boolean isSimPrintMode,
                           int iCompressImage,
                           boolean isTransparent,
                           boolean bToc,
                           boolean bDrill,
                           java.lang.String password)
Exports the JReport result of the current report to the PDF files. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
pdfFileName - The PDF filename with full path.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the PDF files.
isSimPrintMode - Indicates the print mode when generating charts and barcodes. if true, it generates the charts and barcodes by Vector graphics; if false, it generates charts and barcodes by images(recommended).
iCompressImage - Indicates the image compression ratio of the pdf file. Its value is from 1 to 100. If it does not compress the image, the value is -1.
isTransparent - Indicates whether the images in the PDF file are transparent or not.
bToc - Indicates whether or not to generate the PDF file with Table OF Contents (TOC).
bDrill - Indicates whether or not to generate the drilldown PDF files.
password - Specifies the password of the generated PDF file.
Returns:
true if the result is exported successfully; false otherwise.

exportToPdf

public boolean exportToPdf(java.io.OutputStream stream,
                           boolean noMargin,
                           int iCompressImage,
                           boolean isTransparent,
                           boolean bToc,
                           java.lang.String password,
                           int[] pages,
                           int[][] pageRange)
Exports the JReport result of the current report to the OutputStream in PDF data format. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
stream - Exports the result in PDF data format to this OutputStream.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the PDF files.
iCompressImage - Indicates the image compression ratio of the pdf file. Its value is from 1 to 100. If it does not compress the image, the value is -1.
isTransparent - Indicates whether the images in the PDF file are transparent or not.
bToc - Indicates whether or not to generate the PDF file with Table OF Contents (TOC).
bDrill - Indicates whether or not to generate the drilldown PDF files.
password - Specifies the password of the generated PDF file.
Returns:
true if the result is exported successfully; false otherwise.

exportToPdf

public boolean exportToPdf(java.lang.String rstFileName,
                           java.lang.String pdfFileName,
                           boolean noMargin,
                           boolean isSimPrintMode,
                           boolean iCompressImage)
Exports JReport result file (RST file) to PDF file.

Parameters:
rstFileName - The filename of JReport result file with full path.
pdfFileName - The PDF filename with full path.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the PDF files.
isSimPrintMode - Indicates the print mode when generating charts and barcodes. If true, it generates the charts and barcodes by Vector graphics; if false, it generates charts and barcodes by images(recommended).
iCompressImage - Indicates the image compression ratio of the pdf file. Its value is from 1 to 100. If it does not compress the image, the value is -1.
Returns:
true if the result is exported successfully; false otherwise.

exportToPdf

public boolean exportToPdf(java.lang.String rstFileName,
                           java.lang.String pdfFileName,
                           boolean noMargin,
                           boolean isSimPrintMode,
                           int iCompressImage,
                           boolean isTransparent)
Exports JReport result file (RST file) to PDF file.

Parameters:
rstFileName - The filename of JReport result file with full path.
pdfFileName - The PDF filename with full path.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the PDF files.
isSimPrintMode - Indicates the print mode when generating charts and barcodes. If true, it generates the charts and barcodes by Vector graphics; if false, it generates charts and barcodes by images(recommended).
iCompressImage - Indicates the image compression ratio of the pdf file. Its value is from 1 to 100. If it does not compress the image, the value is -1.
bToc - Indicates whether or not to generate the PDF file with Table OF Contents (TOC).
bDrill - Indicates whether or not to generate the drilldown PDF files.
password - Specifies the password of the generated PDF file.
Returns:
true if the result is exported successfully; false otherwise.

exportToPdf

public boolean exportToPdf(java.lang.String rstFileName,
                           java.lang.String pdfFileName,
                           boolean noMargin,
                           boolean isSimPrintMode,
                           int iCompressImage,
                           boolean isTransparent,
                           boolean bToc,
                           boolean bDrill)
Exports JReport result file (RST file) to PDF file.

Parameters:
rstFileName - The filename of JReport result file with full path.
pdfFileName - The PDF filename with full path.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the PDF files.
isSimPrintMode - Indicates the print mode when generating charts and barcodes. If true, it generates the charts and barcodes by Vector graphics; if false, it generates charts and barcodes by images(recommended).
iCompressImage - Indicates the image compression ratio of the pdf file. Its value is from 1 to 100. If it does not compress the image, the value is -1.
bToc - Indicates whether or not to generate the PDF file with Table OF Contents (TOC).
bDrill - Indicates whether or not to generate the drilldown PDF files.
Returns:
true if the result is exported successfully; false otherwise.

exportToPdf

public boolean exportToPdf(java.lang.String rstFileName,
                           java.lang.String pdfFileName,
                           boolean noMargin,
                           boolean isSimPrintMode,
                           int iCompressImage,
                           boolean isTransparent,
                           boolean bToc,
                           boolean bDrill,
                           java.lang.String password)
Exports JReport result file (RST file) to PDF file.

Parameters:
rstFileName - The filename of JReport result file with full path.
pdfFileName - The PDF filename with full path.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the PDF files.
isSimPrintMode - Indicates the print mode when generating charts and barcodes. If true, it generates the charts and barcodes by Vector graphics; if false, it generates charts and barcodes by images(recommended).
iCompressImage - Indicates the image compression ratio of the pdf file. Its value is from 1 to 100. If it does not compress the image, the value is -1.
isTransparent - Indicates whether the images in the PDF file are transparent or not.
bToc - Indicates whether or not to generate the PDF file with Table OF Contents(TOC).
bDrill - Indicates whether or not to generate the drilldown PDF files.
password - Specifies the password of the generated PDF file.
Returns:
true if the result is exported successfully; false otherwise.

exportToPdf

public boolean exportToPdf(java.lang.String filename,
                           PDFParameter parameter)
Exports the JReport result of the current report to the PDF files. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
fileName - The PDF filename with full path.
paramter - Specifies the options of the PDF file.
Returns:
true if the result is exported successfully; false otherwise.

exportToPdf

public boolean exportToPdf(java.lang.String rstFileName,
                           java.lang.String filename,
                           PDFParameter parameter)
Exports JReport result file (RST file) to PDF file.

Parameters:
rstFileName - The filename of JReport result file with full path.
fileName - The PDF filename with full path.
paramter - Specifies the options of the PDF file.
Returns:
true if the result is exported successfully; false otherwise.

exportToText

public boolean exportToText(java.lang.String rstFileName,
                            java.lang.String textFileName,
                            boolean isNormalText)
Exports JReport result file (RST file) to TEXT file.

Parameters:
rstFileName - The filename of JReport result file with full path.
textFileName - The TEXT file name with full path.
isNormalText - Indicates if the text file is the normal text format or Standard Data Format.

The Standard Data Format file is the text file that each row of it represents a record in the report. It can be used as a text data source to exchange data with other applications.

delimiter - Indicates the delimiter char used in the SDF(Standard Data Format) file.
Returns:
true if the result is exported successfully; false otherwise.

exportToText

public boolean exportToText(java.lang.String rstFileName,
                            java.lang.String textFileName,
                            boolean isNormalText,
                            int udchWidth,
                            int udchHeight)
Exports JReport result file (RST file) to TEXT file.

Parameters:
rstFileName - The filename of JReport result file with full path.
textFileName - The TEXT file name with full path.
isNormalText - Indicates if the text file is the normal text format or Standard Data Format.

The Standard Data Format file is the text file that each row of it represents a record in the report. It can be used as a text data source to exchange data with other applications.

udchWidth - Indicates the width of each unit of the horizontal density between the columns. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the width between the columns is. When the value is -1, the density will be specified by default by JReport.
udchHeight - Indicates the height of each unit of the vertical density between the rows. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the height between the rows is. When the value is -1, the density will be specified by default by JReport.
Returns:
true if the result is exported successfully; false otherwise.

exportToText

public boolean exportToText(java.lang.String rstFileName,
                            java.lang.String textFileName,
                            boolean isNormalText,
                            boolean isRepeat,
                            char delimiter)
Exports JReport result file (RST file) to TEXT file.

Parameters:
rstFileName - The filename of JReport result file with full path.
textFileName - The TEXT file name with full path.
isNormalText - Indicates if the text file is the normal text format or Standard Data Format.

The Standard Data Format file is the text file that each row of it represents a record in the report. It can be used as a text datasource to exchange data with other applications.

isRepeat - Indicates whether or not to repeat the same contents in the Text file.
delimiter - Indicates the delimiter char used in the SDF(Standard Data Format) file.
Returns:
true if the result is exported successfully; false otherwise.

exportToText

public boolean exportToText(java.lang.String rstFileName,
                            java.lang.String textFileName,
                            boolean isNormalText,
                            boolean isRepeat,
                            char delimiter,
                            int udchWidth,
                            int udchHeight)
Exports JReport result file (RST file) to TEXT file.

Parameters:
rstFileName - The filename of JReport result file with full path.
textFileName - The TEXT file name with full path.
isNormalText - Indicates if the text file is the normal text format or Standard Data Format.

The Standard Data Format file is the text file that each row of it represents a record in the report. It can be used as a text data source to exchange data with other applications.

isRepeat - Indicates whether or not to repeat the same contents in the Text file.
delimiter - Indicates the delimiter char used in the SDF(Standard Data Format) file.
udchWidth - Indicates the width of each unit of the horizontal density between the columns. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the width between the columns is. When the value is -1, the density will be specified by default by JReport.
udchHeight - Indicates the height of each unit of the vertical density between the rows. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the height between the rows is. When the value is -1, the density will be specified by default by JReport.
forWindows - Specifies whether to use Windows end-of-line characters to indicate the start of a new line. If true, it uses two characters at the end of the line: cr lf. Otherwise, it uses Unix EOL character: lf, at the end of the line.
Returns:
true if the result is exported successfully; false otherwise.

exportToText

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)
Exports JReport result file (RST file) to TEXT file.

Parameters:
rstFileName - The filename of JReport result file with full path.
textFileName - The TEXT file name with full path.
isNormalText - Indicates if the text file is the normal text format or Standard Data Format.

The Standard Data Format file is the text file that each row of it represents a record in the report. It can be used as a text data source to exchange data with other applications.

isRepeat - Indicates whether or not to repeat the same contents in the Text file.
delimiter - Indicates the delimiter char used in the SDF(Standard Data Format) file.
udchWidth - Indicates the width of each unit of the horizontal density between the columns. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the width between the columns is. When the value is -1, the density will be specified by default by JReport.
udchHeight - Indicates the height of each unit of the vertical density between the rows. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the height between the rows is. When the value is -1, the density will be specified by default by JReport.
compress - Indicates whether or not to remove empty lines or redundant delimiters in the text file.
resolution - Specifies the resolution for converting the character. It is one of -1, 72, 76, 96, and 120. When the value is -1, it will be the resolution of your monitor.

exportToText

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)
Exports JReport result file (RST file) to TEXT file.

Parameters:
rstFileName - The filename of JReport result file with full path.
textFileName - The TEXT file name with full path.
isNormalText - Indicates if the text file is the normal text format or Standard Data Format.

The Standard Data Format file is the text file that each row of it represents a record in the report. It can be used as a text data source to exchange data with other applications.

isRepeat - Indicates whether or not to repeat the same contents in the Text file.
delimiter - Indicates the delimiter char used in the SDF(Standard Data Format) file.
udchWidth - Indicates the width of each unit of the horizontal density between the columns. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the width between the columns is. When the value is -1, the density will be specified by default by JReport.
udchHeight - Indicates the height of each unit of the vertical density between the rows. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the height between the rows is. When the value is -1, the density will be specified by default by JReport.
quoteMark - If true, the fields in the exported text file will be marked in quotes.
hasHeadFoot - Indicates whether or not to keep all the header/footer sections of the reportset while exporting. This option is helpful to keep only pure data in the result. If true, it remains all sections of the report result in the text format file; if false, all the header/footer sections and their components will be removed from the result.
Returns:
true if the result is exported successfully; false otherwise.

exportToText

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)
Exports JReport result file (RST file) to TEXT file.

Parameters:
rstFileName - The filename of JReport result file with full path.
textFileName - The TEXT file name with full path.
isNormalText - Indicates if the text file is the normal text format or Standard Data Format.

The Standard Data Format file is the text file that each row of it represents a record in the report. It can be used as a text data source to exchange data with other applications.

isRepeat - Indicates whether or not to repeat the same contents in the Text file.
delimiter - Indicates the delimiter char used in the SDF(Standard Data Format) file.
udchWidth - Indicates the width of each unit of the horizontal density between columns. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the width between the columns is. When the value is -1, the density will be specified by default by JReport.
udchHeight - Indicates the height of each unit of the vertical density between the rows. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the height between the rows is. When the value is -1, the density will be specified by default by JReport.
compress - Indicates whether or not to remove empty lines or redundant delimiters in the text file.
resolution - Specifies the resolution for converting the character. It is one of -1, 72, 76, 96, and 120. When the value is -1, it will be the resolution of your monitor.
quoteMark - If true, the fields in the exported text file will be marked in quotes.
hasHeadFoot - Indicates whether or not to keep all the header/footer sections of the reportset while exporting. This option is helpful to keep only pure data in the result. If true, it remains all sections of the report result in the text format file; if false, all the header/footer sections and their components will be removed from the result.
Returns:
true if the result is exported successfully; false otherwise.

exportToText

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)
Exports JReport result file (RST file) to TEXT file.

Parameters:
rstFileName - The filename of JReport result file with full path.
textFileName - The TEXT file name with full path.
isNormalText - Indicates if the text file is the normal text format or Standard Data Format.

The Standard Data Format file is the text file that each row of it represents a record in the report. It can be used as a text data source to exchange data with other applications.

isRepeat - Indicates whether or not to repeat the same contents in the Text file.
delimiter - Indicates the delimiter char used in the SDF(Standard Data Format) file.
udchWidth - Indicates the width of each unit of the horizontal density between the columns. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the width between the columns is. When the value is -1, the density will be specified by default by JReport.
udchHeight - Indicates the height of each unit of the vertical density between the rows. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the height between the rows is. When the value is -1, the density will be specified by default by JReport.
compress - Indicates whether or not to remove empty lines or redundant delimiters in the text file.
resolution - Specifies the resolution for converting the character. It is one of -1, 72, 76, 96, and 120. When the value is -1, it will be the resolution of your monitor.
quoteMark - If true, the fields in the exported text file will be marked in quotes.
hasHeadFoot - Indicates whether or not to keep all the header/footer sections of the reportset while exporting. This option is helpful to keep only pure data in the result. If true, it remains all sections of the report result in the text format file; if false, all the header/footer sections and their components will be removed from the result.
forWindows - Specifies whether to use Windows end-of-line characters to indicate the start of a new line. If true, it uses two characters at the end of the line: cr lf. Otherwise, it uses Unix EOL character: lf, at the end of the line.
Returns:
true if the result is exported successfully; false otherwise.

exportToText

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)
Exports JReport result file (RST file) to TEXT file.

Parameters:
rstFileName - The filename of JReport result file with full path.
textFileName - The TEXT file name with full path.
isNormalText - Indicates if the text file is the normal text format or Standard Data Format.

The Standard Data Format file is the text file that each row of it represents a record in the report. It can be used as a text data source to exchange data with other applications.

isRepeat - Indicates whether or not to repeat the same contents in the Text file.
delimiter - Indicates the delimiter char used in the SDF(Standard Data Format) file.
udchWidth - Indicates the width of each unit of the horizontal density between the columns. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the width between the columns is. When the value is -1, the density will be specified by default by JReport.
udchHeight - Indicates the height of each unit of the vertical density between the rows. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the height between the rows is. When the value is -1, the density will be specified by default by JReport.
compress - Indicates whether or not to remove empty lines or redundant delimiters in the text file.
resolution - Specifies the resolution for converting the character. It is one of -1, 72, 76, 96, and 120. When the value is -1, it will be the resolution of your monitor.
quoteMark - If true, the fields in the exported text file will be marked in quotes.
hasHeadFoot - Indicates whether or not to keep all the header/footer sections of the reportset while exporting. This option is helpful to keep only pure data in the result. If true, it remains all sections of the report result in the text format file; if false, all the header/footer sections and their components will be removed from the result.
ignoreDelimiter - Indicates to ignore the delimiter in the text or not.
forWindows - Specifies whether to use Windows end-of-line characters to indicate the start of a new line. If true, it uses two characters at the end of the line: cr lf. Otherwise, it uses Unix EOL character: lf, at the end of the line.
Returns:
true if the result is exported successfully; false otherwise.

exportToText

public boolean exportToText(java.lang.String textFileName,
                            boolean isNormalText)
Exports the JReport result of the current report to a TEXT file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
textFileName - The TEXT file name with full path.
isNormalText - Indicates if the text file is the normal text format or Standard Data Format

The Standard Data Format file is the text file that each row of it represents a record in the report. It can be used as a text data source to exchange data with other applications.

isRepeat - Indicates whether or not to repeat the same contents in the Text file.
delimiter - Indicates the delimiter char used in the SDF(Standard Data Format) file.
udchWidth - Indicates the width of each unit of the horizontal density between the columns. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the width between the columns is. When the value is -1, the density will be specified by default by JReport.
udchHeight - Indicates the height of each unit of the vertical density between the rows. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the height between the rows is. When the value is -1, the density will be specified by default by JReport.
compress - Indicates whether or not to remove empty lines or redundant delimiters in the text file.
resolution - Specifies the resolution for converting the character. It is one of -1, 72, 76, 96, and 120. When the value is -1, it will be the resolution of your monitor.
quoteMark - If true, the fields in the exported text file will be marked in quotes.
ignoreDelimiter - Indicates to ignore the delimiter in the text or not.
forWindows - Specifies whether to use Windows end-of-line characters to indicate the start of a new line. If true, it uses two characters at the end of the line: cr lf. Otherwise, it uses Unix EOL character: lf, at the end of the line.
Returns:
true if the result is exported successfully; false otherwise.

exportToText

public boolean exportToText(java.io.OutputStream stream,
                            boolean isNormalText)
Exports the JReport result of the current report in text format to the specified Stream. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
stream - The specified data stream.
isNormalText - Indicates if the text file is the normal text format or Standard Data Format.

The Standard Data Format file is the text file that each row of it represents a record in the report. It can be used as a text data source to exchange data with other applications.

Returns:
true if the result is exported successfully; false otherwise.

exportToText

public boolean exportToText(java.lang.String textFileName,
                            boolean isNormalText,
                            int udchWidth,
                            int udchHeight)
Exports the JReport result of the current report to a TEXT file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
textFileName - The TEXT file name with full path.
isNormalText - Indicates if the text file is the normal text format or Standard Data Format.

The Standard Data Format file is the text file that each row of it represents a record in the report. It can be used as a text data source to exchange data with other applications.

udchWidth - Indicates the width of each unit of the horizontal density between the columns. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the width between the columns is. When the value is -1, the density will be specified by default by JReport.
udchHeight - Indicates the height of each unit of the vertical density between the rows. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the height between the rows is. When the value is -1, the density will be specified by default by JReport.
Returns:
true if the result is exported successfully; false otherwise.

exportToText

public boolean exportToText(java.lang.String textFileName,
                            boolean isNormalText,
                            boolean isRepeat,
                            char delimiter)
Exports the JReport result of the current report to a TEXT file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Specified by:
exportToText in interface EngineExecuter
Parameters:
textFileName - The TEXT file name with full path.
isNormalText - Indicates if the text file is the normal text format or Standard Data Format.

The Standard Data Format file is the text file that each row of it represents a record in the report. It can be used as a text data source to exchange data with other applications.

isRepeat - Indicates whether or not to repeat the same contents in the Text file.
delimiter - Indicates the delimiter char used in the SDF(Standard Data Format) file.
Returns:
true if the result is exported successfully; false otherwise.

exportToText

public boolean exportToText(java.lang.String textFileName,
                            boolean isNormalText,
                            boolean isRepeat,
                            char delimiter,
                            int udchWidth,
                            int udchHeight)
Exports the JReport result of the current report to a TEXT file. Note: It need invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
textFileName - the TEXT file name with full path.
isNormalText - Indicates if the text file is the normal text format or Standard Data Format

the Standard Data Format file is the text file that each row of it represents a record in the report. It can be used as a text data source to exchange data with other application

isRepeat - Indicates whether or not to repeat the same contents in the Text file.
udchWidth - Indicates the width of each unit of the horizontal density between columns. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the width between the columns is. When the value is -1, the density will be specified by default by JReport.
udchHeight - Indicates the height of each unit of the vertical density between the rows. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the height between the rows is. When the value is -1, the density will be specified by default by JReport.
Returns:
true if the result is exported successfully; false otherwise.

exportToText

public boolean exportToText(java.lang.String textFileName,
                            boolean isNormalText,
                            boolean isRepeat,
                            char delimiter,
                            int udchWidth,
                            int udchHeight,
                            boolean compress,
                            int resolution)
Exports the JReport result of the current report to a TEXT file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
textFileName - The TEXT file name with full path.
isNormalText - Indicates if the text file is the normal text format or Standard Data Format.

The Standard Data Format file is the text file that each row of it represents a record in the report. It can be used as a text data source to exchange data with other applications.

isRepeat - Indicates whether or not to repeat the same contents in the Text file.
delimiter - Indicates the delimiter char used in the SDF(Standard Data Format) file.
udchWidth - Indicates the width of each unit of the horizontal density between the columns. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the width between the columns is. When the value is -1, the density will be specified by default by JReport.
udchHeight - Indicates the height of each unit of the vertical density between the rows. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the height between the rows is. When the value is -1, the density will be specified by default by JReport.
compress - Indicates whether or not to remove empty lines or redundant delimiters in the text file.
resolution - Specifies the resolution for converting the character. It is one of -1, 72, 76, 96, and 120. When the value is -1, it will be the resolution of your monitor.
Returns:
true if the result is exported successfully; false otherwise.

exportToText

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)
Exports the JReport result of the current report to a TEXT file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
textFileName - The TEXT file name with full path.
isNormalText - Indicates if the text file is the normal text format or Standard Data Format.

The Standard Data Format file is the text file that each row of it represents a record in the report. It can be used as a text data source to exchange data with other applications.

isRepeat - Indicates whether or not to repeat the same contents in the Text file.
delimiter - Indicates the delimiter char used in the SDF(Standard Data Format) file.
udchWidth - Indicates the width of each unit of the horizontal density between the columns. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the width between the columns is. When the value is -1, the density will be specified by default by JReport.
udchHeight - Indicates the height of each unit of the vertical density between the rows. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the height between the rows is. When the value is -1, the density will be specified by default by JReport.
compress - Indicates whether or not to remove empty lines or redundant delimiters in the text file.
resolution - Specifies the resolution for converting the character. It is one of -1, 72, 76, 96, and 120. When the value is -1, it will be the resolution of your monitor.
quoteMark - If true, the fields in the exported text file will be marked in quotes.
hasHeadFoot - Indicates whether or not to keep all the header/footer sections of the reportset while exporting. This option is helpful to keep only pure data in the result. If true, it remains all sections of the report result in the text format file; if false, all the header/footer sections and their components will be removed from the result.
Returns:
true if the result is exported successfully; false otherwise.

exportToText

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)
Exports the JReport result of the current report to a TEXT file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
textFileName - The TEXT file name with full path.
isNormalText - Indicates if the text file is the normal text format or Standard Data Format.

The Standard Data Format file is the text file that each row of it represents a record in the report. It can be used as a text data source to exchange data with other applications.

isRepeat - Indicates whether or not to repeat the same contents in the Text file.
delimiter - Indicates the delimiter char used in the SDF(Standard Data Format) file.
udchWidth - Indicates the width of each unit of the horizontal density between the columns. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the width between the columns is. When the value is -1, the density will be specified by default by JReport.
udchHeight - Indicates the height of each unit of the vertical density between therows. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the height between the rows is. When the value is -1, the density will be specified by default by JReport.
compress - Indicates whether or not to remove empty lines or redundant delimiters in the text file.
resolution - Specifies the resolution for converting the character. It is one of -1, 72, 76, 96, and 120. When the value is -1, it will be the resolution of your monitor.
quoteMark - If true, the fields in the exported text file will be marked in quotes.
hasHeadFoot - Indicates whether or not to keep all the header/footer sections of the reportset while exporting. This option is helpful to keep only pure data in the result. If true, it remains all sections of the report result in the text format file; if false, all the header/footer sections and their components will be removed from the result.
forWindows - Specifies whether to use Windows end-of-line characters to indicate the start of a new line. If true, it uses two characters at the end of the line: cr lf. Otherwise, it uses Unix EOL character: lf, at the end of the line.
Returns:
true if the result is exported successfully; false otherwise.

exportToText

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)
Exports the JReport result of the current report to a TEXT file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
textFileName - The TEXT file name with full path.
isNormalText - Indicates if the text file is the normal text format or Standard Data Format.

The Standard Data Format file is the text file that each row of it represents a record in the report. It can be used as a text data source to exchange data with other applications.

isRepeat - Indicates whether or not to repeat the same contents in the Text file.
delimiter - Indicates the delimiter char used in the SDF(Standard Data Format) file.
udchWidth - Indicates the width of each unit of the horizontal density between the columns. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the width between the columns is. When the value is -1, the density will be specified by default by JReport.
udchHeight - Indicates the height of each unit of the vertical density between the rows. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the height between the rows is. When the value is -1, the density will be specified by default by JReport.
compress - Indicates whether or not to remove empty lines or redundant delimiters in the text file.
resolution - Specifies the resolution for converting the character. It is one of -1, 72, 76, 96, and 120. When the value is -1, it will be the resolution of your monitor.
quoteMark - If true, the fields in the exported text file will be marked in quotes.
hasHeadFoot - Indicates whether or not to keep all the header/footer sections of the reportset while exporting. This option is helpful to keep only pure data in the result. If true, it remains all sections of the report result in the text format file; if false, all the header/footer sections and their components will be removed from the result.
ignoreDelimiter - Indicates to ignore the delimiter in the text or not.
forWindows - Specifies whether to use Windows end-of-line characters to indicate the start of a new line. If true, it uses two characters at the end of the line: cr lf. Otherwise, it uses Unix EOL character: lf, at the end of the line.
Returns:
true if the result is exported successfully; false otherwise.

exportToText

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)
Exports the JReport result of the current report in text format to the specified Stream. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
stream - Indicates the specified data stream.
isNormalText - Indicates if the text file is the normal text format or Standard Data Format.

The Standard Data Format file is the text file that each row of it represents a record in the report. It can be used as a text data source to exchange data with other applications.

isRepeat - Indicates whether or not to repeat the same contents in the Text file.
delimiter - Indicates the delimiter char used in the SDF(Standard Data Format) file.
udchWidth - Indicates the width of each unit of the horizontal density between the columns. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the width between the columns is. When the value is -1, the density will be specified by default by JReport.
udchHeight - Indicates the height of each unit of the vertical density between the rows. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the height between the rows is. When the value is -1, the density will be specified by default by JReport.
compress - Indicates whether or not to remove empty lines or redundant delimiters in the text file.
resolution - Specifies the resolution for converting the character. It is one of -1, 72, 76, 96, and 120. When the value is -1, it will be the resolution of your monitor.
quoteMark - If true, the fields in the exported text file will be marked in quotes.
hasHeadFoot - Indicates whether or not to keep all the header/footer sections of the reportset while exporting. This option is helpful to keep only pure data in the result. If true, it remains all sections of the report result in the text format file; if false, all the header/footer sections and their components will be removed from the result.
forWindows - Specifies whether to use Windows end-of-line characters to indicate the start of a new line. If true, it uses two characters at the end of the line: cr lf. Otherwise, it uses Unix EOL character: lf, at the end of the line.
Returns:
true if the result is exported successfully; false otherwise.

exportToPS

public boolean exportToPS(java.lang.String rstFileName,
                          java.lang.String psFileName,
                          boolean noMargin)
Exports the JReport result of the current report to a PostScript file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
rstFileName - The filename of the JReport result file with full path.
psFileName - The PostScript filename with full path.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the PostScript files.
Returns:
true if the result is exported successfully; false otherwise.

exportToPS

public boolean exportToPS(java.lang.String rstFileName,
                          java.lang.String psFileName)
Exports the JReport result of the current report to a PostScript file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
rstFileName - The filename of the JReport result file with full path.
psFileName - The PostScript filename with full path.
Returns:
true if the result is exported successfully; false otherwise.

exportToPS

public boolean exportToPS(java.lang.String psFileName)
Exports the JReport result of the current report to a PostScript file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
psFileName - The PostScript filename with full path.
Returns:
true if the result is exported successfully; false otherwise.

exportToPS

public boolean exportToPS(java.io.OutputStream stream)
Exports the JReport result of the current report to a PostScript file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
stream - The specified data stream.
Returns:
true if the result is exported successfully; false otherwise.

exportToPS

public boolean exportToPS(java.lang.String psFileName,
                          boolean noMargin)
Exports the JReport result of the current report to a PostScript file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
psFileName - The PostScript filename with full path.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the PostScript files.
Returns:
true if the result is exported successfully; false otherwise.

exportToPS

public boolean exportToPS(java.io.OutputStream stream,
                          boolean noMargin)
Exports the JReport result of the current report in PostScript format to the Stream. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
stream - The specified data stream.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the result in PostScript format.
Returns:
true if the result is exported successfully; false otherwise.

exportToRtf

public boolean exportToRtf(java.lang.String rstFileName,
                           java.lang.String rtfFileName)
Exports JReport result file (RST file) to the RTF(Rich Text Format) file. The result of RTF is saved in a .rtf file. This file can be opened by Microsoft Word.

Parameters:
rstFileName - The filename of JReport result file with full path.
rtfFileName - The RTF filename with full path.
Returns:
true if the result is exported successfully; false otherwise.

exportToRtf

public boolean exportToRtf(java.lang.String rtfFileName)
Exports the JReport result of the current report to a RTF(Rich Text Format) file. The result of RTF is saved in a .rtf file. This file can be opened by Microsoft Word. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
rtfFileName - The RTF filename with full path.
Returns:
true if the result is exported successfully; false otherwise.

exportToRtf

public boolean exportToRtf(java.io.OutputStream stream)
Exports the JReport result of the current report in RTF(Rich Text Format) format to the Stream. The result of RTF is saved in a .rtf file. This file can be opened by Microsoft Word. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
stream - The specified data stream.
Returns:
true if the result is exported successfully; false otherwise.

exportToRtf

public boolean exportToRtf(java.lang.String rtfFileName,
                           boolean noMargin)
Exports the JReport result of the current report to a RTF(Rich Text Format) file. The result of RTF is saved in a .rtf file. This file can be opened by Microsoft Word. Note: It needs invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
rtfFileName - The RTF filename with full path.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the RTF files.
Returns:
true if the result is exported successfully; false otherwise.

exportToRtf

public boolean exportToRtf(java.io.OutputStream stream,
                           boolean noMargin)
Exports the JReport result of the current report in RTF(Rich Text Format) format to the Stream. The result of RTF is saved in a .rtf file. This file can be opened by Microsoft Word. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
stream - The specified data stream.
Returns:
true if the result is exported successfully; false otherwise.

exportToRtf

public boolean exportToRtf(java.lang.String rstFileName,
                           java.lang.String rtfFileName,
                           boolean noMargin)
Exports JReport result file (RST file) to the RTF(Rich Text Format) file. The result of RTF is saved in a .rtf file. This file can be opened by Microsoft Word.

Parameters:
rstFileName - The filename of JReport result file with full path.
rtfFileName - The RTF filename with full path.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the RTF files.
Returns:
true if the result is exported successfully; false otherwise.

getAllRtfFile

public java.util.Vector getAllRtfFile()
Returns all RTF files that are generated by exportToRTF.


exportToXML

public boolean exportToXML(java.lang.String xmlFileName,
                           boolean isOnlyData,
                           java.lang.String existXSFile)
                    throws java.lang.ClassNotFoundException
Exports the JReport result of the current report to an XML format file. The result of xml is saved in an .xml file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
xmlFileName - The XML filename with full path.
isOnlyData - Indicates whether only the database column information is exported to the XML file, otherwise all report details, including all the properties of the column, will be exported.
existXSFile - Specifies the schema file to be based on when generating the XML file. If it is null, it creates a new schema file.
Returns:
true if the result is exported successfully; false otherwise.
Throws:
java.lang.ClassNotFoundException

exportToXML

public boolean exportToXML(java.lang.String xmlFileName,
                           boolean isMultiFile,
                           boolean isOnlyData)
                    throws java.lang.ClassNotFoundException
Exports the JReport result of the current report to an XML format file. The result of xml is saved in an .xml file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
xmlFileName - The XML filename with full path.
isOnlyData - Indicates whether only the database column information is exported to the XML file, otherwise all report details, including all the properties of the column, will be exported.
Returns:
true if the result is exported successfully; false otherwise.
Throws:
java.lang.ClassNotFoundException

exportToXML

public boolean exportToXML(java.lang.String rstFileName,
                           java.lang.String xmlFileName,
                           boolean isOnlyData,
                           java.lang.String existedSchemaFile)
                    throws java.lang.ClassNotFoundException
Exports JReport result file (RST file) to an XML format file. The result of xml is saved in an .xml file.

Parameters:
rstFileName - The filename of JReport result file with full path.
xmlFileName - The XML filename with full path.
isOnlyData - Indicates whether only the database column information is exported to the XML file, otherwise all report details, including all the properties of the column, will be exported.
existedSchemaFile - Specifies the schema file to be based on when generating the XML file. If it is null, it creates a new schema file.
Returns:
true if the result is exported successfully; false otherwise.
Throws:
java.lang.ClassNotFoundException

exportToXML

public boolean exportToXML(java.lang.String rstFileName,
                           java.lang.String xmlFileName,
                           boolean isMultiFile,
                           boolean isOnlyData)
                    throws java.lang.ClassNotFoundException
Exports JReport result file (RST file) to an XML format file. The result of xml is saved in an .xml file.

Parameters:
rstFileName - The filename of JReport result file with full path.
xmlFileName - The XML filename with full path.
isOnlyData - Indicates whether only the database column information is exported to the XML file, otherwise all report details, including all the properties of the column, will be exported.
isMultiFile - This option is not supported yet.
Returns:
true if the result is exported successfully; false otherwise.
Throws:
java.lang.ClassNotFoundException

exportToXML

public boolean exportToXML(ExportInfo info,
                           XmlParameter param)
                    throws java.lang.ClassNotFoundException
Exports the JReport result of the specified report to an XML format file. The result of xml is saved in an .xml file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
info - The report information of the export task.
param - The XmlParameter specifies the options of the XML file.
Returns:
true if the result is exported successfully; false otherwise.
Throws:
java.lang.ClassNotFoundException

getAllXMLFile

public java.util.Vector getAllXMLFile()
Gets all exported XML file names.

Returns:
XML file names with full path.

exportToXls

public boolean exportToXls(java.lang.String rstFileName,
                           java.lang.String xlsFileName,
                           int isWordWrap,
                           boolean isBiff8,
                           int bExportShaps,
                           boolean shareLabel)
Exports the JReport result file (RST file) to an Excel format file. The result of Excel is saved in an .xls file.

Parameters:
rstFileName - The filename of the JReport result file with full path.
xlsFileName - The Excel file name with full path.
isWordWrap - Specifies whether or not to enable the wordwrap option of the field. The value must be KEEPORIGIN, NOWORDWRAP or WORDWRAPALL.
isBiff8 - Specifies whether or not to export the result in Excel2000 (Biff8) format.
bExportShaps - Specifies whether or not to export the shapes in the result to the Excel file. It is EXPORTSHAPE or NOEXPORTSHAPE.
shareLabel - Deprecated. It is always true now.
Returns:
true if the result is exported successfully; false otherwise.

exportToXls

public boolean exportToXls(java.lang.String rstFileName,
                           java.lang.String xlsFileName,
                           int isWordWrap,
                           boolean isBiff8,
                           int bExportShaps)
Exports the JReport result file (RST file) to an Excel format file. The result of Excel is saved in an .xls file.

Parameters:
rstFileName - The filename of the JReport result file with full path.
xlsFileName - The Excel file name with full path.
isWordWrap - Specifies whether or not to enable the wordwrap option of the field. The value must be KEEPORIGIN, NOWORDWRAP or WORDWRAPALL.
isBiff8 - Specifies whether or not to export the result in Excel2000 (Biff8) format.
bExportShaps - Specifies whether or not to export the shapes in the result to the Excel file. It is EXPORTSHAPE or NOEXPORTSHAPE.
Returns:
true if the result is exported successfully; false otherwise.

exportToXls

public boolean exportToXls(java.lang.String rstFileName,
                           java.lang.String xlsFileName,
                           int isWordWrap,
                           boolean isBiff8)
Exports the JReport result file (RST file) to an Excel format file. The result of Excel is saved in an .xls file.

Parameters:
rstFileName - The filename of JReport result file with full path.
xlsFileName - The Excel file name with full path.
isWordWrap - Specifies whether or not to enable the wordwrap option of the field. The value must be KEEPORIGIN, NOWORDWRAP or WORDWRAPALL.
isBiff8 - Specifies whether or not to export result in Excel2000 (Biff8) format.
Returns:
true if the result is exported successfully; false otherwise.

exportToXls

public boolean exportToXls(java.lang.String rstFileName,
                           java.lang.String xlsFileName,
                           int isWordWrap)
Exports the JReport result file (RST file) to an Excel format file. The result of Excel is saved in an .xls file.

Parameters:
rstFileName - The filename of the JReport result file with full path.
xlsFileName - The Excel file name with full path.
isWordWrap - Specifies whether or not to enable the wordwrap option of the field. The value must be KEEPORIGIN, NOWORDWRAP or WORDWRAPALL.
Returns:
true if the result is exported successfully; false otherwise.

exportToXls

public boolean exportToXls(java.lang.String rstFileName,
                           java.lang.String xlsFileName)
Exports the JReport result file (RST file) to an nExcel format file. The result of Excel is saved in an .xls file.

Parameters:
rstFileName - The filename of the JReport result file with full path.
xlsFileName - The Excel file name with full path.
Returns:
true if the result is exported successfully; false otherwise.

exportToXls

public boolean exportToXls(java.lang.String xlsFileName)
Exports the JReport result of the current report to an Excel file. The result of Excel is saved in an .xls file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
xlsFileName - The Excel file name with full path.
Returns:
true if the result is exported successfully; false otherwise.

exportToXls

public boolean exportToXls(java.io.OutputStream stream)
Exports the JReport result of the current report in Excel format to the Stream. The result of Excel is saved in an .xls file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
stream - The specified data stream.
Returns:
true if the result is exported successfully; false otherwise.

exportToXls

public boolean exportToXls(java.lang.String xlsFileName,
                           int isWordWrap)
Exports the JReport result of the current report to the Excel file. The result of Excel is saved in an .xls file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
xlsFileName - The Excel file name with full path.
isWordWrap - Specifies whether or not to enable the wordwrap option of the field. The value must be KEEPORIGIN, NOWORDWRAP or WORDWRAPALL.
Returns:
true if the result is exported successfully; false otherwise.

exportToXls

public boolean exportToXls(java.lang.String xlsFileName,
                           int isWordWrap,
                           boolean isBiff8)
Exports the JReport result of the current report to the Excel file. The result of Excel is saved in an .xls file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
xlsFileName - The Excel file name with full path.
isWordWrap - Indicates whether or not to enable the wordwrap option of the field. The value must be KEEPORIGIN, NOWORDWRAP or WORDWRAPALL.
isBiff8 - Indicates whether or not to export the result in Excel2000 (Biff8) format.
Returns:
true if the result is exported successfully; false otherwise.

exportToXls

public boolean exportToXls(java.lang.String xlsFileName,
                           int isWordWrap,
                           boolean isBiff8,
                           int bExportShaps)
Exports the JReport result of the current report to the Excel file. The result of Excel is saved in an .xls file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
xlsFileName - The Excel file name with full path.
isWordWrap - Specifies whether or not to enable the wordwrap option of the field. The value must be KEEPORIGIN, NOWORDWRAP or WORDWRAPALL.
isBiff8 - Specifies whether or not to export the result in Excel2000 (Biff8) format.
bExportShaps - Specifies whether or not to export the shapes in the result to the Excel file. It is EXPORTSHAPE or NOEXPORTSHAPE.
Returns:
true if the result is exported successfully; false otherwise.

exportToXls

public boolean exportToXls(java.lang.String xlsFileName,
                           int isWordWrap,
                           boolean isBiff8,
                           int bExportShaps,
                           boolean shareLabel)
Exports the JReport result of the current report to an Excel file. The result of Excel is saved in an .xls file. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
xlsFileName - The Excel file name with full path.
isWordWrap - Specifies whether or not to enable the wordwrap option of the field. The value must be KEEPORIGIN, NOWORDWRAP or WORDWRAPALL.
isBiff8 - Specifies whether or not to export the result in Excel2000 (Biff8) format.
bExportShaps - Specifies whether or not to export the shapes in the result to the Excel file. It is EXPORTSHAPE or NOEXPORTSHAPE.
shareLabel - Deprecated. It is always true now.
Returns:
true if the result is exported successfully; false otherwise.

exportToXls

public boolean exportToXls(java.io.OutputStream stream,
                           int isWordWrap,
                           int bExportShaps,
                           boolean shareLabel)
Exports the JReport result of the current report in the Excel format to the Stream. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
stream - The specified data stream.
isWordWrap - Specifies whether or not to enable the wordwrap option of the field. The value must be KEEPORIGIN, NOWORDWRAP or WORDWRAPALL.
bExportShaps - Specifies whether or not to export the shapes in result to the Excel file. It is EXPORTSHAPE or NOEXPORTSHAPE.
shareLabel - Deprecated. It is always true now.
Returns:
true if the result is exported successfully; false otherwise.

getAllXlsFile

public java.util.Vector getAllXlsFile()
Returns all Excel files that are generated by exportToXls.


configMailServer

public void configMailServer(java.lang.String SMTPServerIP,
                             java.lang.String MyMailAddress,
                             int SMTPServerPort)
Configures the Engine Bean's e-Mail service.

Parameters:
SMTPServerIP - Specifies the IP address of the e-Mail server.
MyMailAddress - Specifies the mail address of the sender.
SMTPServerPort - Specifies the e-Mail server's port number.

setAuthencatorMessage

public void setAuthencatorMessage(java.lang.String username,
                                  java.lang.String password,
                                  java.lang.String mailAddress)
Sets the e-Mail's authenticator information.

Parameters:
username - Specifies the username of the sender's account.
password - Specifies the password of the sender's account.
mailAddresss - Specifies the sender's account. Note: Do not invoke this if the SMTP server needn't authentication.

exportToMail

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
Sends an e-Mail with the JReport result of the current report. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
rcpt - Specifies the e-mail address of the recipients to whom you want to send the report result.
cc - Specifies the e-mail address of the recipients to whom you want to send a copy of the report result.
bcc - Specifies the e-mail address of the recipients to whom you want to send a blind carbon copy of the report result.
subject - Specifies the subject of the e-mail that is to be sent.
comments - Specifies some comments about the report result. The content string will be shown in the text part of the mail.
compress - Specifies whether or not to compress the mail attachments as Java Archives.
rptformat - Specifies the format type of the e-mail attachments.
  • RSTFILEMAIL - Sends the report result via e-mail to the specified address with a JReport result file as attachment.
  • HTMLMAIL - Sends the report result via e-mail to the specified address in HTML format. The report result will be shown in HTML format in the mail's body. If this format is selected, the comments will be overwritten by the report result.
  • HTMLFILEMAIL - Sends the report result via e-mail to the specified address with HTML files as attachments.
  • PDFFILEMAIL - Sends the report result via e-mail to the specified address with PDF files as attachments.
  • PLAINTXTMAIL - Sends the report result via e-mail to the specified address with TEXT files as attachments.
  • SDFTEXTMAIL - Sends the report result via e-mail to the specified address with SDF TEXT files as attachments.
  • PSFILEMAIL - Sends the report result via e-mail to the specified address with PostScript files as attachments.
  • XLSFILEMAIL - Sends the report result via e-mail to the specified address with Excel files as attachments.
  • RTFFILEMAIL - Sends the report result via e-mail to the specified address with RTF (Rich Text Format) files as attachments.
  • XMLFILEMAIL - Sends the report result via e-mail to the specified address with XML files as attachments.
  • DHTMLFILEMAIL - Sends the report result via e-mail to the specified address with DHTML files as attachments.
Throws:
java.lang.Exception

exportToMail

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
Sends an e-Mail with the JReport result of the current report. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
from - Specifies the e-mail address of the sender.
rcpt - Specifies the e-mail address of the recipients to whom you want to send the report result.
cc - Specifies the e-mail address of the recipients to whom you want to send a copy of the report result.
bcc - Specifies the e-mail address of the recipients to whom you want to send a blind carbon copy of the report result.
subject - Specifies the subject of the e-mail that is to be sent.
comments - Specifies some comments about the report result. The content string will be shown in the text part of the mail.
compress - Specifies whether or not to compress the mail attachments as Java Archives.
rptformat - Specifies the format type of the e-mail attachments.
  • RSTFILEMAIL - Sends the report result via e-mail to the specified address with a JReport result file as attachment.
  • HTMLMAIL - Sends the report result via e-mail to the specified address in HTML format. The report result will be shown in HTML format in the mail's body. If this format is selected, the comments will be overwritten by the report result.
  • HTMLFILEMAIL - Sends the report result via e-mail to the specified address with HTML files as attachments.
  • PDFFILEMAIL - Sends the report result via e-mail to the specified address with PDF files as attachments.
  • PLAINTXTMAIL - Sends the report result via e-mail to the specified address with TEXT files as attachments.
  • SDFTEXTMAIL - Sends the report result via e-mail to the specified address with SDF TEXT files as attachments.
  • PSFILEMAIL - Sends the report result via e-mail to the specified address with PostScript files as attachments.
  • XLSFILEMAIL - Sends the report result via e-mail to the specified address with Excel files as attachments.
  • RTFFILEMAIL - Sends the report result via e-mail to the specified address with RTF (Rich Text Format) files as attachments.
  • XMLFILEMAIL - Sends the report result via e-mail to the specified address with XML files as attachments.
  • DHTMLFILEMAIL - Sends the report result via e-mail to the specified address with DHTML files as attachments.
Throws:
java.lang.Exception

exportToMail

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
Sends an e-Mail with the JReport result of the current report. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
rcpt - Specifies the e-mail address of the recipients to whom you want to send the report result.
cc - Specifies the e-mail address of the recipients to whom you want to send a copy of the report result.
bcc - Specifies the e-mail address of the recipients to whom you want to send a blind carbon copy of the report result.
subject - Specifies the subject of the e-mail that is to be sent.
comments - Specifies some comments about the report result. The content string will be shown in the text part of the mail.
compress - Specifies whether or not to compress the mail attachments as Java Archives.
rptformat - Specifies the format type of the e-mail attachments.
  • RSTFILEMAIL - Sends the report result via e-mail to the specified address with a JReport result file as attachment.
  • HTMLMAIL - Sends the report result via e-mail to the specified address in HTML format. The report result will be shown in HTML format in the mail's body. If this format is selected, the comments will be overwritten by the report result.
  • HTMLFILEMAIL - Sends the report result via e-mail to the specified address with HTML files as attachments.
  • PDFFILEMAIL - Sends the report result via e-mail to the specified address with PDF files as attachments.
  • PLAINTXTMAIL - Sends the report result via e-mail to the specified address with TEXT files as attachments.
  • SDFTEXTMAIL - Sends the report result via e-mail to the specified address with SDF TEXT files as attachments.
  • PSFILEMAIL - Sends the report result via e-mail to the specified address with PostScript files as attachments.
  • XLSFILEMAIL - Sends the report result via e-mail to the specified address with Excel files as attachments.
  • RTFFILEMAIL - Sends the report result via e-mail to the specified address with RTF (Rich Text Format) files as attachments.
  • XMLFILEMAIL - Sends the report result via e-mail to the specified address with XML files as attachments.
  • DHTMLFILEMAIL - Sends the report result via e-mail to the specified address with DHTML files as attachments.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the attached files.
Throws:
java.lang.Exception

exportToMail

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
Sends an e-Mail with the JReport result of the current report. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
from - Specifies the e-mail address of the sender.
rcpt - Specifies the e-mail address of the recipients to whom you want to send the report result.
cc - Specifies the e-mail address of the recipients to whom you want to send a copy of the report result.
bcc - Specifies the e-mail address of the recipients to whom you want to send a blind carbon copy of the report result.
subject - Specifies the subject of the e-mail that is to be sent.
comments - Specifies some comments about the report result. The content string will be shown in the text part of the mail.
compress - Specifies whether or not to compress the mail attachments as Java Archives.
rptformat - Specifies the format type of the e-mail attachments.
  • RSTFILEMAIL - Sends the report result via e-mail to the specified address with a JReport result file as attachment.
  • HTMLMAIL - Sends the report result via e-mail to the specified address in HTML format. The report result will be shown in HTML format in the mail's body. If this format is selected, the comments will be overwritten by the report result.
  • HTMLFILEMAIL - Sends the report result via e-mail to the specified address with HTML files as attachments.
  • PDFFILEMAIL - Sends the report result via e-mail to the specified address with PDF files as attachments.
  • PLAINTXTMAIL - Sends the report result via e-mail to the specified address with TEXT files as attachments.
  • SDFTEXTMAIL - Sends the report result via e-mail to the specified address with SDF TEXT files as attachments.
  • PSFILEMAIL - Sends the report result via e-mail to the specified address with PostScript files as attachments.
  • XLSFILEMAIL - Sends the report result via e-mail to the specified address with Excel files as attachments.
  • RTFFILEMAIL - Sends the report result via e-mail to the specified address with RTF (Rich Text Format) files as attachments.
  • XMLFILEMAIL - Sends the report result via e-mail to the specified address with XML files as attachments.
  • DHTMLFILEMAIL - Sends the report result via e-mail to the specified address with DHTML files as attachments.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the attached files.
Throws:
java.lang.Exception

exportToMail

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
Sends an e-Mail with the JReport result of the current report. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
rcpt - Specifies the e-mail address of the recipients to whom you want to send the report result.
cc - Specifies the e-mail address of the recipients to whom you want to send a copy of the report result.
bcc - Specifies the e-mail address of the recipients to whom you want to send a blind carbon copy of the report result.
subject - Specifies the subject of the e-mail that is to be sent.
comments - Specifies some comments about the report result. The content string will be shown in the text part of the mail.
compress - Specifies whether or not to compress the mail attachments as Java Archives.
rptformat - Specifies the format type of the e-mail attachment.
  • RSTFILEMAIL - Sends the report result via e-mail to the specified address with a JReport result file as attachment.
  • HTMLMAIL - Sends the report result via e-mail to the specified address in HTML format. The report result will be shown in HTML format in the mail's body. If this format is selected, the comments will be overwritten by the report result.
  • HTMLFILEMAIL - Sends the report result via e-mail to the specified address with HTML files as attachments.
  • PDFFILEMAIL - Sends the report result via e-mail to the specified address with PDF files as attachments.
  • PLAINTXTMAIL - Sends the report result via e-mail to the specified address with TEXT files as attachments.
  • SDFTEXTMAIL - Sends the report result via e-mail to the specified address with SDF TEXT files as attachments.
  • PSFILEMAIL - Sends the report result via e-mail to the specified address with PostScript files as attachments.
  • XLSFILEMAIL - Sends the report result via e-mail to the specified address with Excel files as attachments.
  • RTFFILEMAIL - Sends the report result via e-mail to the specified address with RTF (Rich Text Format) files as attachments.
  • XMLFILEMAIL - Sends the report result via e-mail to the specified address with XML files as attachments.
  • DHTMLFILEMAIL - Sends the report result via e-mail to the specified address with DHTML files as attachments.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the attached files.
udchWidth - Indicates the width of each unit of the horizontal density between the columns. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the width between the columns is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text-format attached files.
udchHeight - Indicates the height of each unit of the vertical density between the rows. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the height between the rows is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text-format attached files.
Throws:
java.lang.Exception

exportToMail

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
Sends ana e-Mail with the JReport result of the current report. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
from - Specifies the e-mail address of the sender.
rcpt - Specifies the e-mail address of the recipients to whom you want to send the report result.
cc - Specifies the e-mail address of the recipients to whom you want to send a copy of the report result.
bcc - Specifies the e-mail address of the recipients to whom you want to send a blind carbon copy of the report result.
subject - Specifies the subject of the e-mail that is to be sent.
comments - Specifies some comments about the report result. The content string will be shown in the text part of the mail.
compress - Specifies whether or not to compress the mail attachments as Java Archives.
rptformat - Specifies the format type of the e-mail attachments.
  • RSTFILEMAIL - Sends the report result via e-mail to the specified address with a JReport result file as attachment.
  • HTMLMAIL - Sends the report result via e-mail to the specified address in HTML format. The report result will be shown in HTML format in the mail's body. If this format is selected, the comments will be overwritten by the report result.
  • HTMLFILEMAIL - Sends the report result via e-mail to the specified address with HTML files as attachments.
  • PDFFILEMAIL - Sends the report result via e-mail to the specified address with PDF files as attachments.
  • PLAINTXTMAIL - Sends the report result via e-mail to the specified address with TEXT files as attachments.
  • SDFTEXTMAIL - Sends the report result via e-mail to the specified address with SDF TEXT files as attachments.
  • PSFILEMAIL - Sends the report result via e-mail to the specified address with PostScript files as attachments.
  • XLSFILEMAIL - Sends the report result via e-mail to the specified address with Excel files as attachments.
  • RTFFILEMAIL - Sends the report result via e-mail to the specified address with RTF (Rich Text Format) files as attachments.
  • XMLFILEMAIL - Sends the report result via e-mail to the specified address with XML files as attachments.
  • DHTMLFILEMAIL - Sends the report result via e-mail to the specified address with DHTML files as attachments.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the attached files.
udchWidth - Indicates the width of each unit of the horizontal density between the columns. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the width between the columns is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text-format attached files.
udchHeight - Indicates the height of each unit of the vertical density between the rows. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the height between the rows is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text-format attached files.
Throws:
java.lang.Exception

exportToMail

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
Sends an e-Mail with the JReport result of the current report. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
rcpt - Specifies the e-mail address of the recipients to whom you want to send the report result.
cc - Specifies the e-mail address of the recipients to whom you want to send a copy of the report result.
bcc - Specifies the e-mail address of the recipients to whom you want to send a blind carbon copy of the report result.
subject - Specifies the subject of the e-mail that is to be sent.
comments - Specifies some comments about the report result. The content string will be shown in the text part of the mail.
compress - Specifies whether or not to compress the mail attachments as Java Archives.
rptformat - Specifies the format type of the e-mail attachments.
  • RSTFILEMAIL - Sends the report result via e-mail to the specified address with a JReport result file as attachment.
  • HTMLMAIL - Sends the report result via e-mail to the specified address in HTML format. The report result will be shown in HTML format in the mail's body. If this format is selected, the comments will be overwritten by the report result.
  • HTMLFILEMAIL - Sends the report result via e-mail to the specified address with HTML files as attachments.
  • PDFFILEMAIL - Sends the report result via e-mail to the specified address with PDF files as attachments.
  • PLAINTXTMAIL - Sends the report result via e-mail to the specified address with TEXT files as attachments.
  • SDFTEXTMAIL - Sends the report result via e-mail to the specified address with SDF TEXT files as attachments.
  • PSFILEMAIL - Sends the report result via e-mail to the specified address with PostScript files as attachments.
  • XLSFILEMAIL - Sends the report result via e-mail to the specified address with Excel files as attachments.
  • RTFFILEMAIL - Sends the report result via e-mail to the specified address with RTF (Rich Text Format) files as attachments.
  • XMLFILEMAIL - Sends the report result via e-mail to the specified address with XML files as attachments.
  • DHTMLFILEMAIL - Sends the report result via e-mail to the specified address with DHTML files as attachments.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the attached files.
udchWidth - Indicates the width of each unit of the horizontal density between the columns. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the width between the columns is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text-format attached files.
udchHeight - Indicates the height of each unit of the vertical density between the rows. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the height between the rows is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text-format attached files.
isSimPrintMode - Indicates the print mode when generating charts and barcodes. If true, it generates the charts and barcodes by Vector graphics; if false, it generates charts and barcodes by images(recommended).
This property is only for PDF-format attached file.
Throws:
java.lang.Exception

exportToMail

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
Sends an e-Mail with the JReport result of the current report. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
from - Specifies the e-mail address of the sender.
rcpt - Specifies the e-mail address of the recipients to whom you want to send the report result.
cc - Specifies the e-mail address of the recipients to whom you want to send a copy of the report result.
bcc - Specifies the e-mail address of the recipients to whom you want to send a blind carbon copy of the report result.
subject - Specifies the subject of the e-mail that is to be sent.
comments - Specifies some comments about the report result. The contents string will be shown in the text part of the mail.
compress - Specifies whether or not to compress the mail attachments as Java Archives.
rptformat - Specifies the format type of the e-mail attachments.
  • RSTFILEMAIL - Sends the report result via e-mail to the specified address with a JReport result file as attachment.
  • HTMLMAIL - Sends the report result via e-mail to the specified address in HTML format. The report result will be shown in HTML format in the mail's body. If this format is selected, the comments will be overwritten by the report result.
  • HTMLFILEMAIL - Sends the report result via e-mail to the specified address with HTML files as attachments.
  • PDFFILEMAIL - Sends the report result via e-mail to the specified address with PDF files as attachments.
  • PLAINTXTMAIL - Sends the report result via e-mail to the specified address with TEXT files as attachments.
  • SDFTEXTMAIL - Sends the report result via e-mail to the specified address with SDF TEXT files as attachments.
  • PSFILEMAIL - Sends the report result via e-mail to the specified address with PostScript files as attachments.
  • XLSFILEMAIL - Sends the report result via e-mail to the specified address with Excel files as attachments.
  • RTFFILEMAIL - Sends the report result via e-mail to the specified address with RTF (Rich Text Format) files as attachments.
  • XMLFILEMAIL - Sends the report result via e-mail to the specified address with XML files as attachments.
  • DHTMLFILEMAIL - Sends the report result via e-mail to the specified address with DHTML files as attachments.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the attached files.
udchWidth - Indicates the width of each unit of the horizontal density between the columns. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the width between the columns is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text-format attached files.
udchHeight - Indicates the height of each unit of the vertical density between the rows. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the height between the rows is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text-format attached files.
isSimPrintMode - Indicates the print mode when generating charts and barcodes. If true, it generates the charts and barcodes by Vector graphics; if false, it generates charts and barcodes by images(recommended).
This property is only for PDF-format attached files.
Throws:
java.lang.Exception

exportToMail

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 iCompressImage)
                  throws java.lang.Exception
Sends an e-Mail with the JReport result of the current report. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
rcpt - Specifies the e-mail address of the recipients to whom you want to send the report result.
cc - Specifies the e-mail address of the recipients to whom you want to send a copy of the report result.
bcc - Specifies the e-mail address of the recipients to whom you want to send a blind carbon copy of the report result.
subject - Specifies the subject of the e-mail that is to be sent.
comments - Specifies some comments about the report result. The contents string will be shown in the text part of the mail.
compress - Specifies whether or not to compress the mail attachments as Java Archives.
rptformat - Specifies the format type of the e-mail attachments.
  • RSTFILEMAIL - Sends the report result via e-mail to the specified address with a JReport result file as attachment.
  • HTMLMAIL - Sends the report result via e-mail to the specified address in HTML format. The report result will be shown in HTML format in the mail's body. If this format is selected, the comments will be overwritten by the report result.
  • HTMLFILEMAIL - Sends the report result via e-mail to the specified address with HTML files as attachments.
  • PDFFILEMAIL - Sends the report result via e-mail to the specified address with PDF files as attachments.
  • PLAINTXTMAIL - Sends the report result via e-mail to the specified address with TEXT files as attachments.
  • SDFTEXTMAIL - Sends the report result via e-mail to the specified address with SDF TEXT files as attachments.
  • PSFILEMAIL - Sends the report result via e-mail to the specified address with PostScript files as attachments.
  • XLSFILEMAIL - Sends the report result via e-mail to the specified address with Excel files as attachments.
  • RTFFILEMAIL - Sends the report result via e-mail to the specified address with RTF (Rich Text Format) files as attachments.
  • XMLFILEMAIL - Sends the report result via e-mail to the specified address with XML files as attachments.
  • DHTMLFILEMAIL - Sends the report result via e-mail to the specified address with DHTML files as attachments.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the attached files.
udchWidth - Indicates the width of each unit of the horizontal density between the columns. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the width between the columns is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text-format attached files.
udchHeight - Indicates the height of each unit of the vertical density between the rows. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the height between the rows is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text-format attached files.
isSimPrintMode - Indicates the print mode when generating charts and barcodes. If true, it generates the charts and barcodes by Vector graphics; if false, it generates charts and barcodes by images(recommended).
This property is only for PDF-format attached files.
iCompressImage - Indicates the image compression ratio of the pdf file. Its value is from 1 to 100. If it does not compress the image, the value is -1.
This property is only for PDF-format attached files.
Throws:
java.lang.Exception

exportToMail

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 iCompressImage)
                  throws java.lang.Exception
Sends an e-Mail with the JReport result of the current report. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
from - Specifies the e-mail address of the sender.
rcpt - Specifies the e-mail address of the recipients to whom you want to send the report result.
cc - Specifies the e-mail address of the recipients to whom you want to send a copy of the report result.
bcc - Specifies the e-mail address of the recipients to whom you want to send a blind carbon copy of the report result.
subject - Specifies the subject of the e-mail that is to be sent.
comments - Specifies some comments about the report result. The contents string will be shown in the text part of the mail.
compress - Specifies whether or not to compress the mail attachments as Java Archives.
rptformat - Specifies the format type of the e-mail attachment.
  • RSTFILEMAIL - Sends the report result via e-mail to the specified address with a JReport result file as attachment.
  • HTMLMAIL - Sends the report result via e-mail to the specified address in HTML format. The report result will be shown in HTML format in the mail's body. If this format is selected, the comments will be overwritten by the report result.
  • HTMLFILEMAIL - Sends the report result via e-mail to the specified address with HTML files as attachments.
  • PDFFILEMAIL - Sends the report result via e-mail to the specified address with PDF files as attachments.
  • PLAINTXTMAIL - Sends the report result via e-mail to the specified address with TEXT files as attachments.
  • SDFTEXTMAIL - Sends the report result via e-mail to the specified address with SDF TEXT files as attachments.
  • PSFILEMAIL - Sends the report result via e-mail to the specified address with PostScript files as attachments.
  • XLSFILEMAIL - Sends the report result via e-mail to the specified address with Excel files as attachments.
  • RTFFILEMAIL - Sends the report result via e-mail to the specified address with RTF (Rich Text Format) files as attachments.
  • XMLFILEMAIL - Sends the report result via e-mail to the specified address with XML files as attachments.
  • DHTMLFILEMAIL - Sends the report result via e-mail to the specified address with DHTML files as attachments.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the attached files.
udchWidth - Indicates the width of each unit of the horizontal density between the columns. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the width between the columns is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text-format attached files.
udchHeight - Indicates the height of each unit of the vertical density between the rows. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the height between the rows is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text-format attached files.
isSimPrintMode - Indicates the print mode when generating charts and barcodes. If true, it generates the charts and barcodes by Vector graphics; if false, it generates charts and barcodes by images(recommended).
This property is only for PDF-format attached files.
iCompressImage - Indicates the image compression ratio of the pdf file. Its value is from 1 to 100. If it does not compress the image, the value is -1.
This property is only for PDF-format attached files.
isDataOnlyXML - Indicates whether only database column information will be exported to the XML file, otherwise all report details, including all the properties of the column, will be exported.
This property is only for XML-format attached files.
xsdFile - Specifies the schema file to be based on when generating the XML file. If it is null, it creates a new schema file.
This property is only for XML-format attached files.
hasHeadFoot - Indicates whether or not to keep all the header/footer sections of the reportset while exporting. This option is helpful to keep only pure data in the result. If true, it remains all sections of the report result in the text format file; if false, all the header/footer sections and their components will be removed from the result.
This property is only for TEXT-format attached files.
Throws:
java.lang.Exception

exportToMail

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 iCompressImage,
                         boolean isDataOnlyXML,
                         java.lang.String xsdFile,
                         boolean hasHeadFoot)
                  throws java.lang.Exception
Sends an e-Mail with the JReport result of the current report. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
from - Specifies the e-mail address of the sender.
rcpt - Specifies the e-mail address of the recipients to whom you want to send the report result.
cc - Specifies the e-mail address of the recipients to whom you want to send a copy of the report result.
bcc - Specifies the e-mail address of the recipients to whom you want to send a blind carbon copy of the report result.
subject - Specifies the subject of the e-mail that is to be sent.
comments - Specifies some comments about the report result. The contents string will be shown in the text part of the mail.
compress - Specifies whether or not to compress the mail attachments as Java Archives.
rptformat - Specifies the format type of the e-mail attachments.
  • RSTFILEMAIL - Sends the report result via e-mail to the specified address with a JReport result file as attachment.
  • HTMLMAIL - Sends the report result via e-mail to the specified address in HTML format. The report result will be shown in HTML format in the mail's body. If this format is selected, the comments will be overwritten by the report result.
  • HTMLFILEMAIL - Sends the report result via e-mail to the specified address with HTML files as attachments.
  • PDFFILEMAIL - Sends the report result via e-mail to the specified address with PDF files as attachments.
  • PLAINTXTMAIL - Sends the report result via e-mail to the specified address with TEXT files as attachments.
  • SDFTEXTMAIL - Sends the report result via e-mail to the specified address with SDF TEXT files as attachments.
  • PSFILEMAIL - Sends the report result via e-mail to the specified address with PostScript files as attachments.
  • XLSFILEMAIL - Sends the report result via e-mail to the specified address with Excel files as attachments.
  • RTFFILEMAIL - Sends the report result via e-mail to the specified address with RTF (Rich Text Format) files as attachments.
  • XMLFILEMAIL - Sends the report result via e-mail to the specified address with XML files as attachments.
  • DHTMLFILEMAIL - Sends the report result via e-mail to the specified address with DHTML files as attachments.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the attached files.
udchWidth - Indicates the width of each unit of the horizontal density between the columns. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the width between the columns is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text-format attached files.
udchHeight - Indicates the height of each unit of the vertical density between the rows. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the height between the rows is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text-format attached files.
isSimPrintMode - Indicates the print mode when generating charts and barcodes. If true, it generates the charts and barcodes by Vector graphics; if false, it generates charts and barcodes by images(recommended).
This property is only for PDF-format attached files.
iCompressImage - Indicates the image compression ratio of the pdf file. Its value is from 1 to 100. If it does not compress the image, the value is -1.
This property is only for PDF-format attached files.
isDataOnlyXML - Indicates whether only database column information will be exported to the XML file, otherwise all report details, including all the properties of the column, will be exported.
This property is only for XML-format attached files.
xsdFile - Specifies the schema file to be based on when generating the XML file. If it is null, it creates a new schema file.
This property is only for XML-format attached files.
hasHeadFoot - Indicates whether or not to keep all the header/footer sections of the reportset while exporting. This option is helpful to keep only pure data in the result. If true, it remains all sections of the report result in the text format file; if false, all the header/footer sections and their components will be removed from the result.
This property is only for TEXT-format attached files.
Throws:
java.lang.Exception

exportToMail

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 iCompressImage,
                         boolean isDataOnlyXML,
                         java.lang.String xsdFile,
                         boolean hasHeadFoot,
                         boolean isGifTrans)
                  throws java.lang.Exception
Sends an e-Mail with the JReport result of the current report. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
from - Specifies the e-mail address of the sender.
rcpt - Specifies the e-mail address of the recipients to whom you want to send the report result.
cc - Specifies the e-mail address of the recipients to whom you want to send a copy of the report result.
bcc - Specifies the e-mail address of the recipients to whom you want to send a blind carbon copy of the report result.
subject - Specifies the subject of the e-mail that is to be sent.
comments - Specifies some comments about the report result. The contents string will be shown in the text part of the mail.
compress - Specifies whether or not to compress the mail attachments as Java Archives.
rptformat - Specifies the format type of the e-mail attachments.
  • RSTFILEMAIL - Sends the report result via e-mail to the specified address with a JReport result file as attachment.
  • HTMLMAIL - Sends the report result via e-mail to the specified address in HTML format. The report result will be shown in HTML format in the mail's body. If this format is selected, the comments will be overwritten by the report result.
  • HTMLFILEMAIL - Sends the report result via e-mail to the specified address with HTML files as attachments.
  • PDFFILEMAIL - Sends the report result via e-mail to the specified address with PDF files as attachments.
  • PLAINTXTMAIL - Sends the report result via e-mail to the specified address with TEXT files as attachments.
  • SDFTEXTMAIL - Sends the report result via e-mail to the specified address with SDF TEXT files as attachments.
  • PSFILEMAIL - Sends the report result via e-mail to the specified address with PostScript files as attachments.
  • XLSFILEMAIL - Sends the report result via e-mail to the specified address with Excel files as attachments.
  • RTFFILEMAIL - Sends the report result via e-mail to the specified address with RTF (Rich Text Format) files as attachments.
  • XMLFILEMAIL - Sends the report result via e-mail to the specified address with XML files as attachments.
  • DHTMLFILEMAIL - Sends the report result via e-mail to the specified address with DHTML files as attachments.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the attached files.
udchWidth - Indicates the width of each unit of the horizontal density between the columns. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the width between the columns is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text-format attached files.
udchHeight - Indicates the height of each unit of the vertical density between the rows. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the height between the rows is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text-format attached files.
isSimPrintMode - Indicates the print mode when generating charts and barcodes. If true, it generates the charts and barcodes by Vector graphics; if false, it generates charts and barcodes by images(recommended).
This property is only for PDF-format attached files.
iCompressImage - Indicates the image compression ratio of the pdf file. Its value is from 1 to 100. If it does not compress the image, the value is -1.
This property is only for PDF-format attached files.
isGifTrans - Indicates whether the images in the PDF file are transparent or not.
This property is only for PDF-format attached files.
isDataOnlyXML - Indicates that whether only database column information will be exported to the XML file, otherwise all report details, including all the properties of the column, will be exported.
This property is only for XML format attached files.
xsdFile - Specifies the schema file to be based on when generating the XML file. If it is null, it creates a new schema file.
This property is only for XML-format attached files.
hasHeadFoot - Indicates whether or not to keep all the header/footer sections of the reportset while exporting. This option is helpful to keep only pure data in the result. If true, it remains all sections of the report result in the text format file; if false, all the header/footer sections and their components will be removed from the result.
This property is only for TEXT-format attached files.
Throws:
java.lang.Exception

exportToMail

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 iCompressImage,
                         boolean isDataOnlyXML,
                         java.lang.String xsdFile,
                         boolean hasHeadFoot,
                         boolean isGifTrans,
                         boolean bTxtCompress)
                  throws java.lang.Exception
Sends an e-Mail with the JReport result of the current report. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
from - Specifies the e-mail address of the sender.
rcpt - Specifies the e-mail address of the recipients to whom you want to send the report result.
cc - Specifies the e-mail address of the recipients to whom you want to send a copy of the report result.
bcc - Specifies the e-mail address of the recipients to whom you want to send a blind carbon copy of the report result.
subject - Specifies the subject of the e-mail that is to be sent.
comments - Specifies some comments about the report result. The contents string will be shown in the text part of the mail.
compress - Specifies whether or not to compress the mail attachments as Java Archives.
rptformat - Specifies the format type of the e-mail attachments.
  • RSTFILEMAIL - Sends the report result via e-mail to the specified address with a JReport result file as attachment.
  • HTMLMAIL - Sends the report result via e-mail to the specified address in HTML format. The report result will be shown in HTML format in the mail's body. If this format is selected, the comments will be overwritten by the report result.
  • HTMLFILEMAIL - Sends the report result via e-mail to the specified address with HTML files as attachments.
  • PDFFILEMAIL - Sends the report result via e-mail to the specified address with PDF files as attachments.
  • PLAINTXTMAIL - Sends the report result via e-mail to the specified address with TEXT files as attachments.
  • SDFTEXTMAIL - Sends the report result via e-mail to the specified address with SDF TEXT files as attachments.
  • PSFILEMAIL - Sends the report result via e-mail to the specified address with PostScript files as attachments.
  • XLSFILEMAIL - Sends the report result via e-mail to the specified address with Excel files as attachments.
  • RTFFILEMAIL - Sends the report result via e-mail to the specified address with RTF (Rich Text Format) files as attachments.
  • XMLFILEMAIL - Sends the report result via e-mail to the specified address with XML files as attachments.
  • DHTMLFILEMAIL - Sends the report result via e-mail to the specified address with DHTML files as attachments.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the attached files.
udchWidth - Indicates the width of each unit of the horizontal density between the columns. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the width between the columns is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text-format attached files.
udchHeight - Indicates the height of each unit of the vertical density between the rows. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the height between the rows is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text-format attached files.
isSimPrintMode - Indicates the print mode when generating charts and barcodes. If true, it generates the charts and barcodes by Vector graphics; if false, it generates charts and barcodes by images(recommended).
This property is only for PDF-format attached files.
iCompressImage - Indicates the image compression ratio of the pdf file. Its value is from 1 to 100. If it does not compress the image, the value is -1.
This property is only for PDF-format attached files.
isGifTrans - Indicates whether the images in the PDF file are transparent or not.
This property is only for PDF-format attached files.
bToc - Indicates whether or not to generate the PDF file with Table OF Contents (TOC).
This property is only for PDF-format attached files.
isDataOnlyXML - Indicates whether only database column information will be exported to the XML file; otherwise all report details, including all the properties of the column, will be exported.
This property is only for XML-format attached files.
xsdFile - Specifies the schema file to be based on when generating the XML file. If it is null, it creates a new schema file.
This property is only for XML-format attached files.
hasHeadFoot - Indicates whether or not to keep all the header/footer sections of the reportset while exporting. This option is helpful to keep only pure data in the result. If true, it remains all sections of the report result in the text format file; if false, all the header/footer sections and their components will be removed from the result.
This property is only for TEXT-format attached files.
bTxtCompress - Indicates whether or not to remove empty lines or redundant delimiters in the text file.
This property is only for TEXT-format attached files.
Throws:
java.lang.Exception

exportToMail

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 iCompressImage,
                         boolean isDataOnlyXML,
                         java.lang.String xsdFile,
                         boolean hasHeadFoot,
                         boolean isGifTrans,
                         boolean bTxtCompress,
                         boolean isTable)
                  throws java.lang.Exception
Sends an e-Mail with the JReport result of the current report. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
from - Specifies the e-mail address of the sender.
rcpt - Specifies the e-mail address of the recipients to whom you want to send the report result.
cc - Specifies the e-mail address of the recipients to whom you want to send a copy of the report result.
bcc - Specifies the e-mail address of the recipients to whom you want to send a blind carbon copy of the report result.
subject - Specifies the subject of the e-mail that is to be sent.
comments - Specifies some comments about the report result. The contents string will be shown in the text part of the mail.
compress - Specifies whether or not to compress the mail attachments as Java Archives.
rptformat - Specifies the format type of the e-mail attachments.
  • RSTFILEMAIL - Sends the report result via e-mail to the specified address with a JReport result file as attachment.
  • HTMLMAIL - Sends the report result via e-mail to the specified address in HTML format. The report result will be shown in HTML format in the mail's body. If this format is selected, the comments will be overwritten by the report result.
  • HTMLFILEMAIL - Sends the report result via e-mail to the specified address with HTML files as attachments.
  • PDFFILEMAIL - Sends the report result via e-mail to the specified address with PDF files as attachments.
  • PLAINTXTMAIL - Sends the report result via e-mail to the specified address with TEXT files as attachments.
  • SDFTEXTMAIL - Sends the report result via e-mail to the specified address with SDF TEXT files as attachments.
  • PSFILEMAIL - Sends the report result via e-mail to the specified address with PostScript files as attachments.
  • XLSFILEMAIL - Sends the report result via e-mail to the specified address with Excel files as attachments.
  • RTFFILEMAIL - Sends the report result via e-mail to the specified address with RTF (Rich Text Format) files as attachments.
  • XMLFILEMAIL - Sends the report result via e-mail to the specified address with XML files as attachments.
  • DHTMLFILEMAIL - Sends the report result via e-mail to the specified address with DHTML files as attachments.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the attached files.
udchWidth - Indicates the width of each unit of the horizontal density between the columns. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the width between the columns is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text-format attached files.
udchHeight - Indicates the height of each unit of the vertical density between the rows. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the height between the rows is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text-format attached files.
isSimPrintMode - Indicates the print mode when generating charts and barcodes. If true, it generates the charts and barcodes by Vector graphics; if false, it generates charts and barcodes by images(recommended).
This property is only for PDF-format attached files.
iCompressImage - Indicates the image compression ratio of the pdf file. Its value is from 1 to 100. If it does not compress the image, the value is -1.
This property is only for PDF-format attached files.
isGifTrans - Indicates whether the images in the PDF file are transparent or not.
This property is only for PDF-format attached files.
bToc - Indicates whether or not to generate the PDF file with Table OF Contents (TOC).
This property is only for PDF-format attached files.
isDataOnlyXML - Indicates whether only database column information will be exported to the XML file; otherwise all report details, including all the properties of the column, will be exported.
This property is only for XML-format attached files.
xsdFile - Specifies the schema file to be based on when generating the XML file. If it is null, it creates a new schema file.
This property is only for XML-format attached files.
hasHeadFoot - Indicates whether or not to keep all the header/footer sections of the reportset while exporting. This option is helpful to keep only pure data in the result. If true, it remains all sections of the report result in the text format file; if false, all the header/footer sections and their components will be removed from the result.
This property is only for TEXT-format attached files.
bTxtCompress - Indicates whether or not to remove empty lines or redundant delimiters in the text file.
This property is only for TEXT-format attached files.
Throws:
java.lang.Exception

exportToMail

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 iCompressImage,
                         boolean isDataOnlyXML,
                         java.lang.String xsdFile,
                         boolean hasHeadFoot,
                         boolean isGifTrans,
                         boolean bTxtCompress,
                         boolean isTable,
                         int isWordWrap)
                  throws java.lang.Exception
Sends an e-Mail with the JReport result of the current report. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
rcpt - Specifies the e-mail address of the recipients to whom you want to send the report result.
cc - Specifies the e-mail address of the recipients to whom you want to send a copy of the report result.
bcc - Specifies the e-mail address of the recipients to whom you want to send a blind carbon copy of the report result.
subject - Specifies the subject of the e-mail that is to be sent.
comments - Specifies some comments about the report result. The contents string will be shown in the text part of the mail.
compress - Specifies whether or not to compress the mail attachments as Java Archives.
rptformat - Specifies the format type of the e-mail attachments.
  • RSTFILEMAIL - Sends the report result via e-mail to the specified address with a JReport result file as attachment.
  • HTMLMAIL - Sends the report result via e-mail to the specified address in HTML format. The report result will be shown in HTML format in the mail's body. If this format is selected, the comments will be overwritten by the report result.
  • HTMLFILEMAIL - Sends the report result via e-mail to the specified address with HTML files as attachments.
  • PDFFILEMAIL - Sends the report result via e-mail to the specified address with PDF files as attachments.
  • PLAINTXTMAIL - Sends the report result via e-mail to the specified address with TEXT files as attachments.
  • SDFTEXTMAIL - Sends the report result via e-mail to the specified address with SDF TEXT files as attachments.
  • PSFILEMAIL - Sends the report result via e-mail to the specified address with PostScript files as attachments.
  • XLSFILEMAIL - Sends the report result via e-mail to the specified address with Excel files as attachments.
  • RTFFILEMAIL - Sends the report result via e-mail to the specified address with RTF (Rich Text Format) files as attachments.
  • XMLFILEMAIL - Sends the report result via e-mail to the specified address with XML files as attachments.
  • DHTMLFILEMAIL - Sends the report result via e-mail to the specified address with DHTML files as attachments.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the attached files.
udchWidth - Indicates the width of each unit of the horizontal density between the columns. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the width between the columns is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text format attached file.
udchHeight - Indicates the height of each unit of the vertical density between the rows. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the height between the rows is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text format attached file.
isSimPrintMode - Indicates the print mode when generating charts and barcodes. If true, it generates the charts and barcodes by Vector graphics; if false, it generates charts and barcodes by images(recommended).
This property is only for PDF-format attached files.
iCompressImage - Indicates the image compression ratio of the pdf file. Its value is from 1 to 100. If it does not compress the image, the value is -1.
This property is only for PDF-format attached files.
isGifTrans - Indicates whether the images in the PDF file are transparent or not.
This property is only for PDF-format attached files.
bToc - Indicates whether or not to generate the PDF file with Table OF Contents (TOC).
This property is only for PDF-format attached files.
isDataOnlyXML - Indicates whether only database column information will be exported to the XML file, otherwise all report details, including all the properties of the column, will be exported.
This property is only for XML-format attached files.
xsdFile - Specifies the schema file to be based on when generating the XML file. If it is null, it creates a new schema file.
This property is only for XML-format attached files.
hasHeadFoot - Indicates whether or not to keep all the header/footer sections of the reportset while exporting. This option is helpful to keep only pure datay in the result. If true, it remains all sections of the report result in the text format file; if false, all the header/footer sections and their components will be removed from the result.
This property is only for TEXT-format attached files.
bTxtCompress - Indicates whether or not to remove empty lines or redundant delimiters in the text file.
This property is only for TEXT-format attached files.
isWordWrap - Indicates whether or not to enable the wordwrap option of the field. The value must be KEEPORIGIN, NOWORDWRAP or WORDWRAPALL.
This property is only for Excel-format attached files.
Throws:
java.lang.Exception

exportToMail

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 iCompressImage,
                         boolean isDataOnlyXML,
                         java.lang.String xsdFile,
                         boolean hasHeadFoot,
                         boolean isGifTrans,
                         boolean bTxtCompress,
                         boolean isTable,
                         int isWordWrap,
                         boolean isBiff8)
                  throws java.lang.Exception
Sends an e-Mail with the JReport result of the current report. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
rcpt - Specifies the e-mail address of the recipients to whom you want to send the report result.
cc - Specifies the e-mail address of the recipients to whom you want to send a copy of the report result.
bcc - Specifies the e-mail address of the recipients to whom you want to send a blind carbon copy of the report result.
subject - Specifies the subject of the e-mail that is to be sent.
comments - Specifies some comments about the report result. The contents string will be shown in the text part of the mail.
compress - Specifies whether or not to compress the mail attachments as Java Archives.
rptformat - Specifies the format type of the e-mail attachments.
  • RSTFILEMAIL - Sends the report result via e-mail to the specified address with a JReport result file as attachment.
  • HTMLMAIL - Sends the report result via e-mail to the specified address in HTML format. The report result will be shown in HTML format in the mail's body. If this format is selected, the comments will be overwritten by the report result.
  • HTMLFILEMAIL - Sends the report result via e-mail to the specified address with HTML files as attachments.
  • PDFFILEMAIL - Sends the report result via e-mail to the specified address with PDF files as attachments.
  • PLAINTXTMAIL - Sends the report result via e-mail to the specified address with TEXT files as attachments.
  • SDFTEXTMAIL - Sends the report result via e-mail to the specified address with SDF TEXT files as attachments.
  • PSFILEMAIL - Sends the report result via e-mail to the specified address with PostScript files as attachments.
  • XLSFILEMAIL - Sends the report result via e-mail to the specified address with Excel files as attachments.
  • RTFFILEMAIL - Sends the report result via e-mail to the specified address with RTF (Rich Text Format) files as attachments.
  • XMLFILEMAIL - Sends the report result via e-mail to the specified address with XML files as attachments.
  • DHTMLFILEMAIL - Sends the report result via e-mail to the specified address with DHTML files as attachments.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the attached files.
udchWidth - Indicates the width of each unit of the horizontal density between the columns. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the width between the columns is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text-format attached files.
udchHeight - Indicates the height of each unit of the vertical density between the rows. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the height between the rows is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text-format attached files.
isSimPrintMode - Indicates the print mode when generating charts and barcodes. If true, it generates the charts and barcodes by Vector graphics; if false, it generates charts and barcodes by images(recommended).
This property is only for PDF-format attached files.
iCompressImage - Indicates the image compression ratio of the pdf file. Its value is from 1 to 100. If it does not compress the image, the value is -1.
This property is only for PDF-format attached files.
isGifTrans - Indicates whether the images in the PDF file are transparent or not.
This property is only for PDF-format attached files.
bToc - Indicates whether or not to generate the PDF file with Table OF Contents (TOC).
This property is only for PDF-format attached files.
isDataOnlyXML - Indicates whether only database column information will be exported to the XML file; otherwise all report details, including all the properties of the column, will be exported.
This property is only for XML-format attached files.
xsdFile - Specifies the schema file to be based on when generating the XML file. If it is null, it creates a new schema file.
This property is only for XML-format attached files.
hasHeadFoot - Indicates whether or not to keep all the header/footer sections of the reportset while exporting. This option is helpful to keep only pure data in the result. If true, it remains all sections of the report result in the text format file; if false, all the header/footer sections and their components will be removed from the result.
This property is only for TEXT-format attached files.
bTxtCompress - Indicates whether or not to remove empty lines or redundant delimiters in the text file.
This property is only for TEXT-format attached files.
isWordWrap - Indicates whether or not to enable the wordwrap option of the field. The value must be KEEPORIGIN, NOWORDWRAP or WORDWRAPALL.
This property is only for Excel-format attached files.
isBiff8 - Indicates whether or not to export the result in Excel2000 (Biff8) format.
This property is only for Excel-format attached files.
Throws:
java.lang.Exception

exportToMail

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 iCompressImage,
                         boolean isDataOnlyXML,
                         java.lang.String xsdFile,
                         boolean hasHeadFoot,
                         boolean isGifTrans,
                         boolean bTxtCompress,
                         boolean isTable,
                         int isWordWrap,
                         boolean isBiff8,
                         int bExportShaps)
                  throws java.lang.Exception
Sends an e-Mail with the JReport result of the current report. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
rcpt - Specifies the e-mail address of the recipients to whom you want to send the report result.
cc - Specifies the e-mail address of the recipients to whom you want to send a copy of the report result.
bcc - Specifies the e-mail address of the recipients to whom you want to send a blind carbon copy of the report result.
subject - Specifies the subject of the e-mail that is to be sent.
comments - Specifies some comments about the report result. The contents string will be shown in the text part of the mail.
compress - Specifies whether or not to compress the mail attachments as Java Archives.
rptformat - Specifies the format type of the e-mail attachments.
  • RSTFILEMAIL - Sends the report result via e-mail to the specified address with a JReport result file as attachment.
  • HTMLMAIL - Sends the report result via e-mail to the specified address in HTML format. The report result will be shown in HTML format in the mail's body. If this format is selected, the comments will be overwritten by the report result.
  • HTMLFILEMAIL - Sends the report result via e-mail to the specified address with HTML files as attachments.
  • PDFFILEMAIL - Sends the report result via e-mail to the specified address with PDF files as attachments.
  • PLAINTXTMAIL - Sends the report result via e-mail to the specified address with TEXT files as attachments.
  • SDFTEXTMAIL - Sends the report result via e-mail to the specified address with SDF TEXT files as attachments.
  • PSFILEMAIL - Sends the report result via e-mail to the specified address with PostScript files as attachments.
  • XLSFILEMAIL - Sends the report result via e-mail to the specified address with Excel files as attachments.
  • RTFFILEMAIL - Sends the report result via e-mail to the specified address with RTF (Rich Text Format) files as attachments.
  • XMLFILEMAIL - Sends the report result via e-mail to the specified address with XML files as attachments.
  • DHTMLFILEMAIL - Sends the report result via e-mail to the specified address with DHTML files as attachments.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the attached files.
udchWidth - Indicates the width of each unit of the horizontal density between the columns. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the width between the columns is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text-format attached files.
udchHeight - Indicates the height of each unit of the vertical density between the rows. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the height between the rows is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text-format attached files.
isSimPrintMode - Indicates the print mode when generating charts and barcodes. If true, it generates the charts and barcodes by Vector graphics; if false, it generates charts and barcodes by images(recommended).
This property is only for PDF-format attached files.
iCompressImage - Indicates the image compression ratio of the pdf file. Its value is from 1 to 100. If it does not compress the image, the value is -1.
This property is only for PDF-format attached files.
isGifTrans - Indicates whether the images in the PDF file are transparent or not.
This property is only for PDF-format attached files.
bToc - Indicates whether or not to generate the PDF file with Table OF Contents (TOC).
This property is only for PDF-format attached files.
isDataOnlyXML - Indicates whether only database column information will be exported to the XML file, otherwise all report details, including all the properties of the column, will be exported.
This property is only for XML-format attached files.
xsdFile - Specifies the schema file to be based on when generating the XML file. If it is null, it creates a new schema file.
This property is only for XML-format attached files.
hasHeadFoot - Indicates whether or not to keep all the header/footer sections of the reportset while exporting. This option is helpful to keep only pure data in the result. If true, it remains all sections of the report result in the text format file; if false, all the header/footer sections and their components will be removed from the result.
This property is only for TEXT-format attached files.
bTxtCompress - Indicates whether or not to remove empty lines or redundant delimiters in the text file.
This property is only for TEXT-format attached files.
isWordWrap - Indicates whether or not to enable the wordwrap option of the field. The value must be KEEPORIGIN, NOWORDWRAP or WORDWRAPALL.
This property is only for Excel-format attached files.
isBiff8 - Indicates whether or not to export the result in Excel2000 (Biff8) format.
This property is only for Excel-format attached files.
bExportShaps - Indicates whether or not to export the shapes in result to the Excel file. It is EXPORTSHAPE or NOEXPORTSHAPE.
This property is only for Excel-format attached files.
Throws:
java.lang.Exception

exportToMail

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 iCompressImage,
                         boolean isDataOnlyXML,
                         java.lang.String xsdFile,
                         boolean hasHeadFoot,
                         boolean isGifTrans,
                         boolean bTxtCompress,
                         boolean isTable,
                         int isWordWrap,
                         boolean isBiff8,
                         int bExportShaps,
                         boolean bToc,
                         boolean bDrill)
                  throws java.lang.Exception
Sends an e-Mail with the JReport result of the current report. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
rcpt - Specifies the e-mail address of the recipients to whom you want to send the report result.
cc - Specifies the e-mail address of the recipients to whom you want to send a copy of the report result.
bcc - Specifies the e-mail address of the recipients to whom you want to send a blind carbon copy of the report result.
subject - Specifies the subject of the e-mail that is to be sent.
comments - Specifies some comments about the report result. The contents string will be shown in the text part of the mail.
compress - Specifies whether or not to compress the mail attachments as Java Archives.
rptformat - Specifies the format type of the e-mail attachments.
  • RSTFILEMAIL - Sends the report result via e-mail to the specified address with a JReport result file as attachment.
  • HTMLMAIL - Sends the report result via e-mail to the specified address in HTML format. The report result will be shown in HTML format in the mail's body. If this format is selected, the comments will be overwritten by the report result.
  • HTMLFILEMAIL - Sends the report result via e-mail to the specified address with HTML files as attachments.
  • PDFFILEMAIL - Sends the report result via e-mail to the specified address with PDF files as attachments.
  • PLAINTXTMAIL - Sends the report result via e-mail to the specified address with TEXT files as attachments.
  • SDFTEXTMAIL - Sends the report result via e-mail to the specified address with SDF TEXT files as attachments.
  • PSFILEMAIL - Sends the report result via e-mail to the specified address with PostScript files as attachments.
  • XLSFILEMAIL - Sends the report result via e-mail to the specified address with Excel files as attachments.
  • RTFFILEMAIL - Sends the report result via e-mail to the specified address with RTF (Rich Text Format) files as attachments.
  • XMLFILEMAIL - Sends the report result via e-mail to the specified address with XML files as attachments.
  • DHTMLFILEMAIL - Sends the report result via e-mail to the specified address with DHTML files as attachments.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the attached files.
udchWidth - Indicates the width of each unit of the horizontal density between the columns. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the width between the columns is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text-format attached files.
udchHeight - Indicates the height of each unit of the vertical density between the rows. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the height between the rows is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text-format attached files.
isSimPrintMode - Indicates the print mode when generating charts and barcodes. If true, it generates the charts and barcodes by Vector graphics; if false, it generates charts and barcodes by images(recommended).
This property is only for PDF-format attached files.
iCompressImage - Indicates the image compression ratio of the pdf file. Its value is from 1 to 100. If it does not compress the image, the value is -1.
This property is only for PDF-format attached files.
isGifTrans - Indicates whether the images in the PDF file are transparent or not.
This property is only for PDF-format attached files.
bToc - Indicates whether or not to generate the PDF file with Table OF Contents (TOC).
This property is only for PDF-format attached files.
bDrill - Indicates whether or not to generate the drilldown PDF files.
This property is only for PDF-format attached files.
isDataOnlyXML - Indicates whether only database column information will be exported to the XML file; otherwise all report details, including all the properties of the column, will be exported.
This property is only for XML-format attached files.
xsdFile - Specifies the schema file to be based on when generating the XML file. If it is null, it creates a new schema file.
This property is only for XML-format attached files.
hasHeadFoot - Indicates whether or not to keep all the header/footer sections of the reportset while exporting. This option is helpful to keep only pure data in the result. If true, it remains all sections of the report result in the text format file; if false, all the header/footer sections and their components will be removed from the result.
This property is only for TEXT-format attached files.
bTxtCompress - Indicates whether or not to remove empty lines or redundant delimiters in the text file.
This property is only for TEXT-format attached files.
isWordWrap - Indicates whether or not to enable the wordwrap option of the field. The value must be KEEPORIGIN, NOWORDWRAP or WORDWRAPALL.
This property is only for Excel-format attached files.
isBiff8 - Indicates whether or not to export the result in Excel2000 (Biff8) format.
This property is only for Excel-format attached files.
bExportShaps - Indicates whether or not to export the shapes in result to the Excel file. It is EXPORTSHAPE or NOEXPORTSHAPE.
This property is only for Excel-format attached files.
Throws:
java.lang.Exception

exportToMail

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 iCompressImage,
                         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
Sends an e-Mail with the JReport result of the current report. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
rcpt - Specifies the e-mail address of the recipients to whom you want to send the report result.
cc - Specifies the e-mail address of the recipients to whom you want to send a copy of the report result.
bcc - Specifies the e-mail address of the recipients to whom you want to send a blind carbon copy of the report result.
subject - Specifies the subject of the e-mail that is to be sent.
comments - Specifies some comments about the report result. The contents string will be shown in the text part of the mail.
compress - Specifies whether or not to compress the mail attachments as Java Archives.
rptformat - Specifies the format type of the e-mail attachments.
  • RSTFILEMAIL - Sends the report result via e-mail to the specified address with a JReport result file as attachment.
  • HTMLMAIL - Sends the report result via e-mail to the specified address in HTML format. The report result will be shown in HTML format in the mail's body. If this format is selected, the comments will be overwritten by the report result.
  • HTMLFILEMAIL - Sends the report result via e-mail to the specified address with HTML files as attachments.
  • PDFFILEMAIL - Sends the report result via e-mail to the specified address with PDF files as attachments.
  • PLAINTXTMAIL - Sends the report result via e-mail to the specified address with TEXT files as attachments.
  • SDFTEXTMAIL - Sends the report result via e-mail to the specified address with SDF TEXT files as attachments.
  • PSFILEMAIL - Sends the report result via e-mail to the specified address with PostScript files as attachments.
  • XLSFILEMAIL - Sends the report result via e-mail to the specified address with Excel files as attachments.
  • RTFFILEMAIL - Sends the report result via e-mail to the specified address with RTF (Rich Text Format) files as attachments.
  • XMLFILEMAIL - Sends the report result via e-mail to the specified address with XML files as attachments.
  • DHTMLFILEMAIL - Sends the report result via e-mail to the specified address with DHTML files as attachments.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the attached files.
udchWidth - Indicates the width of each unit of the horizontal density between the columns. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the width between the columns is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text-format attached files.
udchHeight - Indicates the height of each unit of the vertical density between the rows. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the height between the rows is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text-format attached files.
isSimPrintMode - Indicates the print mode when generating charts and barcodes. If true, it generates the charts and barcodes by Vector graphics; if false, it generates charts and barcodes by images(recommended).
This property is only for PDF-format attached files.
iCompressImage - Indicates the image compression ratio of the pdf file. Its value is from 1 to 100. If it does not compress the image, the value is -1.
This property is only for PDF-format attached files.
isGifTrans - Indicates whether the images in the PDF file are transparent or not.
This property is only for PDF-format attached files.
bToc - Indicates whether or not to generate the PDF file with Table OF Contents (TOC).
This property is only for PDF-format attached files.
bDrill - Indicates whether or not to generate the drilldown PDF files.
This property is only for PDF-format attached files.
isDataOnlyXML - Indicates whether only database column information will be exported to the XML file, otherwise all report details, including all the properties of the column, will be exported.
This property is only for XML-format attached files.
xsdFile - Specifies the schema file to be based on when generating the XML file. If it is null, it creates a new schema file.
This property is only for XML-format attached files.
hasHeadFoot - Indicates whether or not to keep all the header/footer sections of the reportset while exporting. This option is helpful to keep only pure data in the result. If true, it remains all sections of the report result in the text format file; if false, all the header/footer sections and their components will be removed from the result.
This property is only for TEXT-format attached files.
bTxtCompress - Indicates whether or not to remove empty lines or redundant delimiters in the text file.
This property is only for TEXT-format attached files.
isWordWrap - Indicates whether or not to enable the wordwrap option of the field. The value must be KEEPORIGIN, NOWORDWRAP or WORDWRAPALL.
This property is only for Excel-format attached files.
isBiff8 - Indicates whether or not to export the result in Excel2000 (Biff8) format.
This property is only for Excel-format attached files.
Throws:
java.lang.Exception

exportToMail

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 iCompressImage,
                         boolean isDataOnlyXML,
                         java.lang.String xsdFile,
                         boolean hasHeadFoot,
                         boolean isGifTrans,
                         boolean bTxtCompress,
                         boolean isTable,
                         int isWordWrap,
                         boolean isBiff8,
                         int bExportShaps,
                         boolean bToc,
                         boolean bDrill,
                         java.lang.String encoding)
                  throws java.lang.Exception
Sends an e-Mail with the JReport result of the current report. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
rcpt - Specifies the e-mail address of the recipients to whom you want to send the report result.
cc - Specifies the e-mail address of the recipients to whom you want to send a copy of the report result.
bcc - Specifies the e-mail address of the recipients to whom you want to send a blind carbon copy of the report result.
subject - Specifies the subject of the e-mail that is to be sent
comments - Specifies some comments about the report result. The contents string will be shown in the text part of the mail.
compress - Specifies whether or not to compress the mail attachments as Java Archives.
rptformat - Specifies the format type of the e-mail attachments.
  • RSTFILEMAIL - Sends the report result via e-mail to the specified address with a JReport result file as attachment.
  • HTMLMAIL - Sends the report result via e-mail to the specified address in HTML format. The report result will be shown in HTML format in the mail's body. If this format is selected, the comments will be overwritten by the report result.
  • HTMLFILEMAIL - Sends the report result via e-mail to the specified address with HTML files as attachments.
  • PDFFILEMAIL - Sends the report result via e-mail to the specified address with PDF files as attachments.
  • PLAINTXTMAIL - Sends the report result via e-mail to the specified address with TEXT files as attachments.
  • SDFTEXTMAIL - Sends the report result via e-mail to the specified address with SDF TEXT files as attachments.
  • PSFILEMAIL - Sends the report result via e-mail to the specified address with PostScript files as attachments.
  • XLSFILEMAIL - Sends the report result via e-mail to the specified address with Excel files as attachments.
  • RTFFILEMAIL - Sends the report result via e-mail to the specified address with RTF (Rich Text Format) files as attachments.
  • XMLFILEMAIL - Sends the report result via e-mail to the specified address with XML files as attachments.
  • DHTMLFILEMAIL - Sends the report result via e-mail to the specified address with DHTML files as attachments.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the attached files.
udchWidth - Indicates the width of each unit of the horizontal density between the columns. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the width between the columns is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text-format attached files.
udchHeight - Indicates the height of each unit of the vertical density between the rows. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the height between the rows is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text-format attached files.
isSimPrintMode - Indicates the print mode when generating charts and barcodes. If true, it generates the charts and barcodes by Vector graphics; if false, it generates charts and barcodes by images(recommended).
This property is only for PDF-format attached files.
iCompressImage - Indicates the image compression ratio of the pdf file. Its value is from 1 to 100. If it does not compress the image, the value is -1.
This property is only for PDF-format attached files.
isGifTrans - Indicates whether the images in the PDF file are transparent or not.
This property is only for PDF-format attached files.
bToc - Indicates whether or not to generate the PDF file with Table OF Contents (TOC).
This property is only for PDF-format attached files.
bDrill - Indicates whether or not to generate the drilldown PDF files.
This property is only for PDF-format attached files.
isDataOnlyXML - Indicates whether only database column information will be exported to the XML file; otherwise all report details, including all the properties of the column, will be exported.
This property is only for XML-format attached files.
xsdFile - Specifies the schema file to be based on when generating the XML file. If it is null, it creates a new schema file.
This property is only for XML-format attached files.
hasHeadFoot - Indicates whether or not to keep all the header/footer sections of the reportset while exporting. This option is helpful to keep only pure data in the result. If true, it remains all sections of the report result in the text format file; if false, all the header/footer sections and their components will be removed from the result.
This property is only for TEXT-format attached files.
bTxtCompress - Indicates whether or not to remove empty lines or redundant delimiters in the text file.
This property is only for TEXT-format attached files.
isWordWrap - Indicates whether or not to enable the wordwrap option of the field. The value must be KEEPORIGIN, NOWORDWRAP or WORDWRAPALL.
This property is only for Excel-format attached files.
isBiff8 - Indicates whether or not to export the result in Excel2000 (Biff8) format.
This property is only for Excel-format attached files.
bExportShaps - Indicates whether or not to export the shapes in result to the Excel file. It is EXPORTSHAPE or NOEXPORTSHAPE.
This property is only for Excel-format attached files.
encoding - Specifies the encoding of the e-mail.
Throws:
java.lang.Exception

exportToMail

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
Sends an e-Mail with the JReport result of the current report. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
from - Specifies the e-mail address of the sender.
rcpt - Specifies the e-mail address of the recipients to whom you want to send the report result.
cc - Specifies the e-mail address of the recipients to whom you want to send a copy of the report result.
bcc - Specifies the e-mail address of the recipients to whom you want to send a blind carbon copy of the report result.
subject - Specifies the subject of the e-mail that is to be sent.
comments - Specifies some comments about the report result. The contents string will be shown in the text part of the mail.
compress - Specifies whether or not to compress the mail attachments as Java Archives.
rptformat - Specifies the format type of the e-mail attachments.
  • RSTFILEMAIL - Sends the report result via e-mail to the specified address with a JReport result file as attachment.
  • HTMLMAIL - Sends the report result via e-mail to the specified address in HTML format. The report result will be shown in HTML format in the mail's body. If this format is selected, the comments will be overwritten by the report result.
  • HTMLFILEMAIL - Sends the report result via e-mail to the specified address with HTML files as attachments.
  • PDFFILEMAIL - Sends the report result via e-mail to the specified address with PDF files as attachments.
  • PLAINTXTMAIL - Sends the report result via e-mail to the specified address with TEXT files as attachments.
  • SDFTEXTMAIL - Sends the report result via e-mail to the specified address with SDF TEXT files as attachments.
  • PSFILEMAIL - Sends the report result via e-mail to the specified address with PostScript files as attachments.
  • XLSFILEMAIL - Sends the report result via e-mail to the specified address with Excel files as attachments.
  • RTFFILEMAIL - Sends the report result via e-mail to the specified address with RTF (Rich Text Format) files as attachments.
  • XMLFILEMAIL - Sends the report result via e-mail to the specified address with XML files as attachments.
  • DHTMLFILEMAIL - Sends the report result via e-mail to the specified address with DHTML files as attachments.
noMargin - Indicates whether or not to remove the page margins of the report result when generating the attached files.
udchWidth - Indicates the width of each unit of the horizontal density between the columns. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the width between the columns is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text-format attached files.
udchHeight - Indicates the height of each unit of the vertical density between the rows. The density of the result is a direct ratio with the specified value. That is to say, the greater the value is, the smaller the height between the rows is. When the value is -1, the density will be specified by default by JReport.
This property is only for Text-format attached files.
isSimPrintMode - Indicates the print mode when generating charts and barcodes. If true, it generates the charts and barcodes by Vector graphics; if false, it generates charts and barcodes by images(recommended).
This property is only for PDF-format attached files.
iCompressImage - Indicates the image compression ratio of the pdf file. Its value is from 1 to 100. If it does not compress the image, the value is -1.
This property is only for PDF-format attached files.
isDataOnlyXML - Indicates whether only database column information will be exported to the XML file; otherwise all report details, including all the properties of the column, will be exported.
This property is only for XML-format attached files.
xsdFile - Specifies the schema file to be based on when generating the XML file. If it is null, it creates a new schema file.
This property is only for XML-format attached files.
hasHeadFoot - Indicates whether or not to keep all the header/footer sections of the reportset while exporting. This option is helpful to keep only pure data in the result. If true, it remains all sections of the report result in the text format file; if false, all the header/footer sections and their components will be removed from the result.
This property is only for TEXT-format attached files.
compress - Indicates whether or not to remove empty lines or redundant delimiters in the text file.
This property is only for TEXT-format attached files.
Throws:
java.lang.Exception

exportToMail

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
Sends an e-Mail with the JReport result in XML format of the current report. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
from - Specifies the e-mail address of the sender.
rcpt - Specifies the e-mail address of the recipients to whom you want to send the report result.
cc - Specifies the e-mail address of the recipients to whom you want to send a copy of the report result.
bcc - Specifies the e-mail address of the recipients to whom you want to send a blind carbon copy of the report result.
subject - Specifies the subject of the e-mail that is to be sent.
comments - Specifies some comments about the report result. The contents string will be shown in the text part of the mail.
compress - Specifies whether or not to compress the mail attachments as Java Archives.
isDataOnlyXML - Indicates whether only database column information will be exported to the XML file, otherwise all report details, including all the properties of the column, will be exported.
This property is only for XML-format attached files.
xsdFile - Specifies the schema file to be based on when generating the XML file. If it is null, it creates a new schema file.
This property is only for XML-format attached files.
Throws:
java.lang.Exception

exportToMail

public void exportToMail(MailInformation info)
                  throws java.lang.Exception
Sends an e-Mail with the JReport result of the current report. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.
This property is only for XML-format attached files.

Parameters:
info - Indicates the information and setting of the mail.
Throws:
java.lang.Exception

exportToMail

public void exportToMail(ExportInfo exportInfo,
                         MailInformation info)
                  throws java.lang.Exception
Sends an e-Mail with the JReport result of the specified report. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.
This property is only for XML-format attached files.

Parameters:
info - The report information of the export task.
info - Indicates the information and setting of the mail.
Throws:
java.lang.Exception

sendNormalMail

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
Exports current report engine that has already run to mail.

Parameters:
rcpt - Receipt address.
cc - Address to be copied to.
bcc - Address to be blindly copied to.
subject - Mail subject.
comments - Any text string for memo.
compress - Indicates whether to use java compress utilities to compress the mail contents.
additionfiles - Additional files attached to the mail other than report results. If the additional files are null, it means no files are attached to the mail.
Throws:
java.lang.Exception

sendNormalMail

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
Export current report engine that has already run to mail.

Parameters:
from - Address where the mail is from.
rcpt - Receipt address.
cc - Address to be copied to.
bcc - Address to be blindly copied to.
subject - Mail subject.
comments - Any text string for memo.
compress - Indicates whether to use java compress utilities to compress the mail contents.
additionfiles - Additional files attached to the mail other than report results. If the additional files are null, it means no files are attached to the mail.
Throws:
java.lang.Exception

setNamedWherePortion

public void setNamedWherePortion(java.lang.String name)
Sets the predefined WHERE portion. The WHERE portion replaces part of the WHERE clause (QBE and ANDWhere) at JReport engine runtime.

Parameters:
name - Specifies the name of the predefined WHERE portion.

setNamedWherePortion

public void setNamedWherePortion(java.lang.String dataSourceName,
                                 java.lang.String queryName,
                                 java.lang.String name)
Sets the predefined WHERE portion. The WHERE portion replaces part of the WHERE clause (QBE and ANDWhere) at JReport engine runtime.

Parameters:
dataSourceName - Specifies the data source name of the predefined WHERE portion.
queryName - Specifies the query name of the predefined WHERE portion.
name - Specifies the name of the predefined WHERE portion.

setWherePortion

public void setWherePortion(java.lang.String where)
Sets the runtime WHERE portion. The WHERE portion replaces part of the WHERE clause (QBE and ANDWhere) at JReport engine runtime.

Parameters:
where - Specifies the SQL statement of the runtime WHERE portion.

setWherePortion

public void setWherePortion(java.lang.String dataSourceName,
                            java.lang.String queryName,
                            java.lang.String where)
Sets the runtime WHERE portion. The WHERE portion replaces part of the WHERE clause (QBE and ANDWhere) at JReport engine runtime.

Parameters:
dataSourceName - Specifies the data source name of the predefined WHERE portion.
queryName - Specifies the query name of the predefined WHERE portion.
where - Specifies the SQL statement of the runtime WHERE portion.

saveWherePortion

public boolean saveWherePortion(java.lang.String strName,
                                java.lang.String strQueryName,
                                java.lang.String strSQL)
saves the specified SQL statement to the JReport Catalog. The WHERE portion replaces part of the WHERE clause (QBE and ANDWhere) at JReport engine runtime.

Parameters:
strQueryName - Specifies the query name of the predefined WHERE portion.
strName - Specifies the name of the predefined WHERE portion.
strSQL - Specifies the SQL statement of the runtime WHERE portion.
Returns:
true if the WHERE portion is saved successfully; false otherwise.

saveWherePortion

public boolean saveWherePortion(java.lang.String strName,
                                java.lang.String dataSourceName,
                                java.lang.String strQueryName,
                                java.lang.String strSQL)
Saves the specified SQL statement to the JReport Catalog. The WHERE portion replaces part of the WHERE clause (QBE and ANDWhere) at JReport engine runtime.

Parameters:
dataSourceName - Specifies the data source name of the predefined WHERE portion.
strQueryName - Specifies the query name of the predefined WHERE portion.
strName - Specifies the name of the predefined WHERE portion.
strSQL - Specifies the SQL statement of the runtime WHERE portion.
Returns:
true if the WHERE portion is saved successfully; false otherwise.

saveWherePortion

public boolean saveWherePortion(java.lang.String strName,
                                java.lang.String strQueryName,
                                java.util.Vector vecGroups)
Saves the specified SQL statement to the JReport Catalog. The WHERE portion replaces part of the WHERE clause (QBE and ANDWhere) at JReport engine runtime.

Parameters:
strQueryName - Specifies the query name of the predefined WHERE portion.
strName - Specifies the name of the predefined WHERE portion.
vecGroups - Specifies the SQL statement of the runtime WHERE portion. Each element presents the String format SQL statememt and a new group.
Returns:
true if the WHERE portion is saved successfully; false otherwise.

saveWherePortion

public boolean saveWherePortion(java.lang.String strName,
                                java.lang.String dataSourceName,
                                java.lang.String strQueryName,
                                java.util.Vector vecGroups)
Saves the specified SQL statement to the JReport Catalog. The WHERE portion replaces part of the WHERE clause (QBE and ANDWhere) at JReport engine runtime.

Parameters:
dataSourceName - Specifies the data source name of the predefined WherePortion.
strQueryName - Specifies the query name of the predefined WherePortion.
strName - Specifies the name of the predefined WherePortion.
vecGroups - Specifies the SQL statement of the runtime WHERE portion. Each element presents the String format SQL statememt and a new group.
Returns:
true if the WHERE portion is saved successfully; false otherwise.

saveWherePortion

public boolean saveWherePortion(java.lang.String strName,
                                java.lang.String strSQL)
Deprecated. 

Saves the specified SQL statement to the JReport Catalog. The WHERE portion replaces part of the WHERE clause (QBE and ANDWhere) at JReport engine runtime.

Parameters:
strName - Specifies the name of the predefined WherePortion.
strSQL - Specifies the SQL statement of the runtime WHERE portion.
Returns:
true if the where portion is saved successfully; false otherwise.
See Also:
setReportName(String)

saveWherePortion

public boolean saveWherePortion(java.lang.String strName,
                                java.util.Vector vecGroups)
Deprecated. 

Adds a new predefined WHERE portion depending on the specified query and saves the JReport Catalog. The query is the default query of the specified reportset. The WHERE portion replaces part of the WHERE clause (QBE and ANDWhere) at JReport engine runtime.

Parameters:
strName - Specifies the name of the predefined WherePortion.
vecGroups - Specifies the groups that represent the structure of the WHERE portion. Each element is a Vector that represents a WHERE portion group; the WHERE portion group is composed of 4-dimension String arrays.
For example,
Vector vecGroups = new Vector();
Vector whereGroup = new Vector();
whereGroup.add(new String[]{Expression1 , sOperator1, Expression2, sLogic1});
whereGroup.add(new String[]{Expression3 , sOperator2, Expression4, sLogic2});
vecGroups.add(whereGroup);
Returns:
true if the WHERE portion is saved successfully; false otherwise.
See Also:
setReportName(String)

modifyWherePortion

public boolean modifyWherePortion(java.lang.String strName,
                                  java.lang.String strSQL)
Deprecated. 

Modifies the predefined WHERE portion depending on the specified query and saves the catalog. The query is the default query of the specified reportset.

Parameters:
strName - Specifies the name of the predefined WHERE portion.
strSQL - Specifies the new WHERE clause string.
Returns:
true if the specified WHERE portion is modified successfully; false otherwise.
See Also:
setReportName(String)

modifyWherePortion

public boolean modifyWherePortion(java.lang.String strName,
                                  java.util.Vector vecGroups)
Deprecated. 

Modifies the predefined WherePortion depending on the specified query and saves the catalog. The query is the default query of the specified reportset.

Parameters:
strName - Specifies the name of the predefined WherePortion.
vecGroups - Specifies the groups that represent the structure of the WHERE portion. Each element is a Vector that represents a WHERE portion group; the whereportion group is composed of 4-dimension String arrays.
For example,
Vector vecGroups = new Vector();
Vector whereGroup = new Vector();
whereGroup.add(new String[]{Expression1 , sOperator1, Expression2, sLogic1});
whereGroup.add(new String[]{Expression3 , sOperator2, Expression4, sLogic2});
vecGroups.add(whereGroup);
Returns:
true if the specified WHERE portion is modified successfully; false otherwise.
See Also:
setReportName(String)

deleteWherePortion

public boolean deleteWherePortion(java.lang.String strName)
Deletes the specified predefined WHERE portion in the default database and saves the catalog.

Parameters:
strName - Specifies the name of the predefined WHERE portion.
Returns:
true if the specified WHERE portion is deleted successfully; false otherwise.

deleteWherePortion

public boolean deleteWherePortion(java.lang.String strName,
                                  java.lang.String sourceName)
Deletes the specified predefined WHERE portion in the specified database and saves the catalog.

Parameters:
strName - Specifies the name of the predefined WHERE portion.
sourceName - Specifies the name of the database.
Returns:
true if the specified WHERE portion is deleted successfully; false otherwise.

getAvailableWherePortions

public java.util.Enumeration getAvailableWherePortions(java.lang.String datasourceName,
                                                       java.lang.String queryName)
Gets all WHERE portions' names which depend on the specified query in the catalog.

Parameters:
datasourceName - Specifies the name of the database.
queryName - Specifies the name of the query that the WHERE portion depends on.
Returns:
a Enumeration collecting the WHERE portions' names.

getAvailableWherePortions

public java.util.Enumeration getAvailableWherePortions()
Deprecated. 

Gets all WHERE portions' names which depend on the specified query in the catalog. The query is the default query of the specified reportset.

Returns:
a Enumeration collecting the WHERE portions' names.
See Also:
setReportName(String)

getAvailableQueryFields

public java.util.Enumeration getAvailableQueryFields()
Gets the available fields of the query. The available fields include: 1. Query fields in the selected clause. 2. Available formulas. These formulas do not include summary and group level formulas. 3. All of the parameters. 4. All of the table columns in the FROM clause.

Returns:
an enumeration that contains QueryFieldDesc; null if the query is not found.

getWherePortionsSQL

public java.lang.String getWherePortionsSQL(java.lang.String nameOfWherePortion)
Gets the specified WHERE portion.

Parameters:
nameOfWherePortion - The name of the WHERE portion.
Returns:
the statement of the WHERE portion if succeeded, else null.

getWherePortionsSQL

public java.lang.String getWherePortionsSQL(java.lang.String nameOfWherePortion,
                                            java.lang.String sourceName)
Gets the specified WHERE portion.

Parameters:
nameOfWherePortion - The name of the WHERE portion.
sourceName - The name of the data source.
Returns:
the statement of the WHERE portion if succeeded, else null.

saveCatalog

public boolean saveCatalog()
Saves the loaded JReport catalog.

Returns:
true if the catalog is saved successfully; false otherwise.
See Also:
setCatName(String)

addFileQuery

public boolean addFileQuery(java.lang.String strName,
                            java.io.File flPath)
Adds the specified FileQuery into the default database of the specified catalog.

Parameters:
strName - Specifies the mapping name of the new JReport FileQuery.
flPath - Specifies the file name with full file path. The file stores the SQL statement string.
Returns:
true if the FileQuery is added successfully; false otherwise.
See Also:
setCatName(String)

addFileQuery

public boolean addFileQuery(java.lang.String strName,
                            java.io.File flPath,
                            java.lang.String sourceName)
Adds the specified FileQuery into the specified database of the specified catalog.

Parameters:
strName - Specifies the mapping name of the new JReport FileQuery.
flPath - Specifies the file name with full file path. The file stores the SQL statement string.
sourceName - Specifies the database name.
Returns:
true if the FileQuery is added successfully; false otherwise.
See Also:
setCatName(String)

getSQL

public java.lang.String getSQL()
Returns:
the sql statement string.

modifyUserInfo

public void modifyUserInfo(java.lang.String strUserName,
                           java.lang.String strPassword)
Modifies the User and Password information of the JReport connection definition of the default JReport database. Note: A JReport connection contains the tables, views, stored procedures and file queries. The queries, tables, formulas and summaries depend on the connection's definition.

Parameters:
strUserName - Specifies the new user name of the connection.
strPassword - Specifies the new password of the connection.

modifyUserInfo

public void modifyUserInfo(java.lang.String strUserName,
                           java.lang.String strPassword,
                           java.lang.String dataSourceName)
Modifies the User and Password information of the specified JReport connection definition. Note: A JReport connection contains the tables, views, stored procedures and file queries. The queries, tables, formulas and summaries depend on the connection's definition.

Parameters:
strUserName - Specifies the new user name of the connection.
strPassword - Specifies the new password of the connection.
dataSourceName - Specifies the database name of the connection.

setConnection

public void setConnection(java.lang.String strURL,
                          java.lang.String strUID,
                          java.lang.String strPSWD,
                          java.lang.String strJdbcDriver)
Deprecated. Replaced by setConnection(String, String, String, String, String)

/**Sets the runtime connection's definition to the JReport engine. It will replace all connections' definition used in the JReport engine with the specified one.

Parameters:
strURL - Specifies the URL of the database. If it is null, the relevant parameter defined in the catalog will be used.
strUID - Specifies the user name of the database.
strPSWD - Specifies the password of the database.
strJdbcDriver - Specifies the class name of JDBC Driver. If it is null, the relevant parameter defined in the catalog will be used.

setConnection

public void setConnection(java.lang.String strUID,
                          java.lang.String strPSWD)
Deprecated. Replaced by setConnection(String, String, String)

Sets the runtime connection's definition to the JReport engine. It will replace all connections' definition used in the JReport engine with the specified one.

Parameters:
strUID - Specifies the user name of the database. If it is null, the relevant parameter defined in the catalog will be used.
strPSWD - Specifies the password of the database. If it is null, the relevant parameter defined in the catalog will be used.

setConnection

public void setConnection(java.lang.String strURL,
                          java.lang.String strUID,
                          java.lang.String strPSWD,
                          java.lang.String strJdbcDriver,
                          boolean fetchSupportInfo)
Deprecated. Replaced by setConnection(String, String, String, String, String, boolean)

Sets the runtime connection's definition to the JReport engine. It will replace all connections' definition used in the JReport engine with the specified one.

Parameters:
strURL - Specifies the URL of the database. If it is null, the relevant parameter defined in the catalog will be used.
strUID - Specifies the user name of the database.
strPSWD - Specifies the password of the database.
strJdbcDriver - Specifies the class name of Jdbc Driver. If it is null, the relevant parameter defined in the catalog will be used.
fetchSupportInfo - If true, gets the user support information when connecting to the database. If it is null, the relevant parameter defined in the catalog will be used.

setConnection

public void setConnection(java.lang.String dataSourceName,
                          java.sql.Connection userDbConnection)
Sets the runtime connection of the specified JReport database.

Parameters:
dataSourceName - Specifies the name of the database.
userDbConnection - Specifies the user's connection which replaces the connection defined in JReport database.

setConnection

public void setConnection(java.lang.String dataSourceName,
                          java.sql.Connection userDbConnection,
                          boolean fetchSupportInfo)
Sets the runtime connection of the specified JReport database's default connection.

Parameters:
dataSourceName - Specifies the name of the database.
userDbConnection - Specifies the user's connection which replaces the default connection defined in JReport database.
fetchSupportInfo - If true, gets the user support information when connecting to the database.

setConnection

public void setConnection(java.lang.String dataSourceName,
                          java.lang.String connectionName,
                          java.sql.Connection userDbConnection)
Sets the runtime connection of the specified JReport database and connection.

Parameters:
dataSourceName - Specifies the name of the database.
connectionName - Specifies connection resource name
userDbConnection - Specifies the user's connection which replaces the default connection defined in JReport database.
fetchSupportInfo - If true, gets the user support information when connecting to the database.

setConnection

public void setConnection(java.lang.String dataSourceName,
                          java.lang.String strUID,
                          java.lang.String strPSWD)
Sets the runtime connection's definition of the specified JReport database.

Parameters:
dataSourceName - Specifies the name of the database.
strUID - Specifies the user name of the database. If it is null, the relevant parameter defined in the catalog will be used.
strPSWD - Specifies the password of the database. If it is null, the relevant parameter defined in the catalog will be used.

setConnection

public void setConnection(java.lang.String dataSourceName,
                          java.lang.String strURL,
                          java.lang.String strUID,
                          java.lang.String strPSWD,
                          java.lang.String strJdbcDriver)
Sets the runtime connection's definition of the specified JReport database.

Parameters:
dataSourceName - Specifies the name of the database.
strURL - Specifies the URL of the database. If it is null, the relevant parameter defined in the catalog will be used.
strUID - Specifies the user name of the database.
strPSWD - Specifies the password of the database.
strJdbcDriver - Specifies the class name of JDBC Driver. If it is null, the relevant parameter defined in the catalog will be used.

setConnection

public void setConnection(java.lang.String dataSourceName,
                          java.lang.String connectionName,
                          java.lang.String strURL,
                          java.lang.String strUID,
                          java.lang.String strPSWD,
                          java.lang.String strJdbcDriver)
Sets the runtime connection's definition of the specified JReport database.

Parameters:
dataSourceName - Specifies the name of the database.
connectionName - Specifies the resource name of the connection.
strURL - Specifies the URL of the database. If it is null, the relevant parameter defined in the catalog will be used.
strUID - Specifies the user name of the database.
strPSWD - Specifies the password of the database.
strJdbcDriver - Specifies the class name of JDBC Driver. If it is null, the relevant parameter defined in the catalog will be used.

setConnection

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)
Sets the runtime connection's definition of the specified JReport database.

Parameters:
dataSourceName - Specifies the name of the database.
strURL - Specifies the URL of the database. If it is null, the relevant parameter defined in the catalog will be used.
strUID - Specifies the user name of the database.
strPSWD - Specifies the password of the database.
strJdbcDriver - Specifies the class name of JDBC Driver. If it is null, the relevant parameter defined in the catalog will be used.
fetchSupportInfo - If true, gets the user support information when connecting to the database. If it is null, the relevant parameter defined in the catalog will be used.

setConnection

public void setConnection(java.sql.Connection userDbConnection)
Deprecated. Replaced by setConnection(String, Connection)

Sets the runtime connection to the JReport engine. It will replace all connections used in the JReport engine with the specified connection.

Parameters:
userDbConnection - Specifies the user's connection which replaces the connection defined in JReport database.

setConnection

public void setConnection(java.sql.Connection userDbConnection,
                          boolean fetchSupportInfo)
Deprecated. Replaced by setConnection(String, Connection, boolean)

Sets the runtime connection to the JReport engine. It will replace all connections used in the JReport engine with the specified connection.

Parameters:
userDbConnection - Specifies the user's connection which replaces the connection defined in JReport database.
fetchSupportInfo - If true, gets the user support information when connecting to the database.

setFetchSupportInfo

public void setFetchSupportInfo(boolean fetchSupportInfo)
Specifies whether or not to get the user support information when connecting to the database.

Parameters:
fetchSupportInfo - If true, gets the user support information when connecting to the database.

setUserResultSet

public void setUserResultSet(java.sql.ResultSet userResultSet)
Sets the runtime resultset of the default JReport database.

Parameters:
userResultSet - Specifies the user's resultset. JReport engine will run report with such resultset.

setUserName

public void setUserName(java.lang.String name)
Sets the user name used for report Security Context.

Parameters:
name - The user name used for report Security Context.

setSecurityContext

public void setSecurityContext(SecurityContext sc)
Sets the Security Context definition used for the reportset.

Parameters:
securityContext - The Security Context used for the reportset.

getVersion

public java.lang.String getVersion()
Gets the main version number and build number information of the JReport product.

Returns:
the string of the main version number and build number information of the JReport product.

getAllPrinters

public static java.util.Vector getAllPrinters(java.lang.String reportHome)
Gets the available printers' names.

Parameters:
reportHome - Specifies the JReport product install root to load the printers.ini file and get user defined printer names.
Returns:
the vector that contains the printers' names.

getAllPrinters

public static java.util.Vector getAllPrinters()
Gets the available printers' names.

Returns:
the vector that contains the printers' names.

exportToFax

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
Exports the specified report result via fax.

Parameters:
info - The report information of the export task.
portStr - Specifies the port number. The port should be obtained from the modem manual.
initStr - Specifies to initialize the modem. The string should be obtained from the modem manual.
iDialing - Specifies the dialing mode of the fax modem. It is Pulse (1) or Tone(0).
iFlowControl - Specifies the flow control mode between DTE (Data Terminal Equipment) and DCE (Data Circuit-terminating Equipment).
  • RtsCts - 0, flow control of the hardware.
  • Xon/Xoff - 1, flow control of the software.
  • None - 2, no flow control specified.

Specifying the flow control can help the compressing data function of the modem function to be better. The RtsCts mode is recommended.
iFlowCommand - Specifies the flow command according to the flow control mode. The command should be obtained from the modem manual.
iClass - Specifies the class of the modem. The options are as follows: Class 1, Class 2 and Class 2.0. All are fax protocols. Most modem only support Class 1, so be sure that higher protocols are supported by the modem if Class 2 or Class 2.0 is selected.
txtTimeOut - Specifies the maximum amount of time in seconds for how long the fax should wait for a response from the destination before timing out.
txtRetries - Specifies the maximum number of times in seconds that the modem will retry faxing the report result When the line is busy.
q_best - Deprecated.
q_normal - Deprecated.
q_fast - Deprecated.
isAddCover - Specifies whether or not to add a cover before faxing the report.
faxnum - Specifies the phone number of the fax.
from - Specifies the sender shown in the cover.
to - Specifies the receiver.
company - Specifies the company name shown in the cover.
phone - Specifies the phone number shown in the cover.
date - Specifies the date shown in the cover.
re - Specifies the subject of the fax.
comments - Specifies the comments of the fax.
urgent - Specifies whether or not to show "urgent" remark in the cover.
review - Specifies whether or not to show "reviewed" remark in the cover.
comment - Specifies whether or not to show "has comment" remark in the cover.
reply - Specifies whether or not to show "get reply" remark in the cover.
Returns:
true if the result is exported successfully; false otherwise.
Throws:
java.lang.Exception

exportToFax

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
Exports the JReport result of the current report via Fax. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
portStr - Specifies the port number. The port should be obtained from the modem manual.
initStr - Specifies to initialize the modem. The string should be obtained from the modem manual.
iDialing - Specifies the dialing mode of the fax modem. It is Pulse (1) or Tone(0).
iFlowControl - Specifies the flow control mode between DTE (Data Terminal Equipment) and DCE (Data Circuit-terminating Equipment).
  • RtsCts - 0, flow control of the hardware.
  • Xon/Xoff - 1, flow control of the software.
  • None - 2, no flow control specified.

Specifying the flow control can help the compressing data function of the modem function to be better. The RtsCts mode is recommended.
iFlowCommand - Specifies the flow command according to the flow control mode. The command should be obtained from the modem manual.
iClass - Specifies the class of the modem. The options are as follows: Class 1, Class 2 and Class 2.0. All are fax protocols. Most modem only support Class 1, so be sure that higher protocols are supported by the modem if Class 2 or Class 2.0 is selected.
txtTimeOut - Specifies the maximum amount of time in seconds for how long the fax should wait for a response from the destination before timing out.
txtRetries - Specifies the maximum number of times in seconds that the modem will retry faxing the report result When the line is busy.
q_best - Deprecated.
q_normal - Deprecated.
q_fast - Deprecated.
isAddCover - Specifies whether or not to add a cover before faxing report.
faxnum - Specifies the phone number of the fax.
from - Specifies the sender shown in the cover.
to - Specifies the receiver.
company - Specifies the company name shown in the cover.
phone - Specifies the phone number shown in the cover.
date - Specifies the date shown in the cover.
re - Specifies the subject of the fax.
comments - Specifies the comments of the fax.
urgent - Specifies whether or not to show "urgent" remark in the cover.
review - Specifies whether or not to show "reviewed" remark in the cover.
comment - Specifies whether or not to show "has comment" remark in the cover.
reply - Specifies whether or not to show "get reply" remark in the cover.
Returns:
true if the result is exported successfully; false otherwise.
Throws:
java.lang.Exception

exportToFax

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
Exports the JReport result of the current report via Fax. Note: It needs to invoke runCurrentReport or other methods like it to generate report result before this.

Parameters:
portStr - Specifies the port number. The port should be obtained from the modem manual.
initStr - Specifies to initialize the modem. The string should be obtained from the modem manual.
iDialing - Specifies the dialing mode of the fax modem. It is Pulse (1) or Tone(0).
iFlowControl - Specifies the flow control mode between DTE (Data Terminal Equipment) and DCE (Data Circuit-terminating Equipment).
  • RtsCts - 0, flow control of the hardware.
  • Xon/Xoff - 1, flow control of the software.
  • None - 2, no flow control specified.

Specifying the flow control can help the compressing data function of the modem function to be better. The RtsCts mode is recommended.
iFlowCommand - Specifies the flow command according to the flow control mode. The command should be obtained from the modem manual.
iClass - Specifies the class of the modem. The options are as follows: Class 1, Class 2 and Class 2.0. All are fax protocols. Most modem only support Class 1, so be sure that higher protocols are supported by the modem if Class 2 or Class 2.0 is selected.
txtTimeOut - Specifies the maximum amount of time in seconds for how long the fax should wait for a response from the destination before timing out.
txtRetries - Specifies the maximum number of times in seconds that the modem will retry faxing the report result When the line is busy.
q_best - Deprecated.
q_normal - Deprecated.
q_fast - Deprecated.
faxnum - Specifies the phone number of the fax.
Returns:
true if the result is exported successfully; false otherwise.
Throws:
java.lang.Exception

exportToFaxServer

public boolean exportToFaxServer(ExportInfo info,
                                 java.lang.String className,
                                 JRFaxServerInfo faxinfo,
                                 JRCoverInfo coverinfo)
                          throws JRFaxServerException
Exports the specified report result via the fax server.

Parameters:
info - The report information of the export task.
class - The name of class implements JRFaxServer.
faxinfo - The information of the fax server.
coverinfo - The information of the cover of the fax.
Returns:
true if the result is exported successfully; false otherwise.
Throws:
JRFaxServerException

exportToText

public boolean exportToText(ExportInfo info,
                            TextParameter param)
Exports the report's result to a text file.

Parameters:
info - The report information of the export task.
param - The text file information.
Returns:
true if the result is exported successfully; false otherwise.

exportToPS

public boolean exportToPS(ExportInfo info,
                          PSParameter param)
Exports the report to a postscript file.

Parameters:
info - The report information of the export task.
param - The postscript file information.
Returns:
true if the result is exported successfully; false otherwise.

exportToHtml

public boolean exportToHtml(ExportInfo info,
                            HtmlParameter param)
Exports the report's result to an HTML file.

Parameters:
info - The report information of the export task.
param - The optional definition of the HTML file.
Returns:
true if the report's result be exported successfully; false otherwise.

exportToRtf

public boolean exportToRtf(ExportInfo info,
                           RtfParameter param)
Exports the report to a RTF file.

Parameters:
info - The report information of the export task.
param - The RTF file information.
Returns:
true if the result is exported successfully; false otherwise.

getCommunicator

public Communicator getCommunicator(java.lang.String rptName,
                                    java.lang.String viewName,
                                    boolean security)

getAllDataSource

public static java.lang.String[] getAllDataSource(java.lang.String rptSetName,
                                                  int rptStatus)
Parameters:
rptSetName - Specifies the reportset file name with full path.
rptStatus - specifies the report status. JReport engine loads datasets according to the report's status. It is RPT_STATUS_CURRENT, RPT_STATUS_OPEN or RPT_STATUS_ALL.
Returns:
data source name array.

getAllDataSource

public static java.lang.String[] getAllDataSource(java.lang.String catName,
                                                  java.lang.String rptSetName,
                                                  int rptStatus)
Gets all data source names used by the reportset with specified report's status.

Parameters:
catName - Specifies the catalog file name with full path.
rptSetName - Specifies the reportset file name with full path.
rptStatus - Specifies the report status. JReport engine loads datasets according to the report's status. It is RPT_STATUS_CURRENT, RPT_STATUS_OPEN or RPT_STATUS_ALL.
Returns:
data source name array.

getAllDataSource

public java.lang.String[] getAllDataSource(int rptStatus)
Gets all data source names used by the reportset with specified report's status.

Parameters:
rptStatus - Specifies the report status. JReport engine loads datasets according to the report's status. It is RPT_STATUS_CURRENT, RPT_STATUS_OPEN or RPT_STATUS_ALL.
Returns:
data source name array.
See Also:
setCatName(String), setReportName(String)

getAllDataSource

public static java.lang.String[] getAllDataSource(java.lang.String catName)
Gets all data source names of the specified catalog.

Parameters:
catName - Specifies the catalog filename with full file path.
Returns:
data source name array.

getThreadError

public java.lang.Throwable getThreadError()
Gets the Throwable error that is thrown when JReport engine is running.


runAllReport

public void runAllReport()
Loads the given reportset's template and generates the reports' results. If the reportset has several reports, all the reports except the reports which are marked as "closed" will be run.

See Also:
setCatName(String), setReportName(String)

runCurrentReport

public void runCurrentReport()
Loads the given reportset's template and generates the reports' results. If the reportset has several reports, only the report marked as "Current" will be run.

See Also:
setCatName(String), setReportName(String)

runReport

public void runReport(java.lang.String rsdFilename)
Loads the given JReport DHTML result file (RSD file) and generates the reports' results.


runReport

public void runReport()
Loads the given reportset's template and generates the reports' results. The report's result will be saved as a ".rst" file automatically. The result file can be generated in the path specified by SetResultFile or along with the reportset if the result filename is not set. If the reportset has several reports, all the reports except the reports which are marked as "closed" will be run.

See Also:
setCatName(String), setReportName(String), setResultFile(String)

runReport

public void runReport(java.util.Vector vReportNames)
Loads the given reportset's template and generates the reports' results. Only the reports whose names are specified in the list will be run.

Parameters:
vReportNames - Indicates the report name list. Each element is a string value of a report's instance name.
See Also:
setCatName(String), setReportName(String)

runReport

public void runReport(java.lang.String[] rptNames,
                      java.util.Vector[] viewNames)
Loads the given reportset's template and generates the reports' results. Only the reports whose names are specified in the list will be run.

Parameters:
rptNames - Indicates the report name list. Each element is a string value of a report's instance name.
viewNames - Indicates the view name list. Each element is a string value of a view's instance name. Since there is only one view for a report yet, it could be null.
See Also:
setCatName(String), setReportName(String)

exportToPDF

public boolean exportToPDF(ExportInfo info,
                           PDFParameter param)
Exports the report's result to a PDF file.

Parameters:
info - The report information of the export task.
param - The optional definition of the PDF file.
Returns:
true if the report's result is exported successfully; false otherwise.

exportToXls

public boolean exportToXls(ExportInfo info,
                           ExcelParameter param)
Exports the report to an Excel file.

Parameters:
info - The report information of the export task.
param - The Excel file information.
Returns:
true if the result is exported successfully; false otherwise.

getUserInfo

public static java.lang.String[] getUserInfo(java.lang.String catName,
                                             java.lang.String dataSourceName)
Gets the connection's user information of the specified catalog and data source.

Parameters:
catName - Specifies the catalog file name with full file path.
dataSourceName - Specifies the data source name.
Returns:
a string array with 2 members. The first is UserName; the second is password.

getUserInfoByReport

public static java.lang.String[] getUserInfoByReport(java.lang.String reportName,
                                                     java.lang.String dataSourceName)
Gets the default user information in the specified catalog and data source.

Parameters:
reportName - Self-contained report template's file name that contains full path.
dataSourceName - Specifies the data source.
Returns:
a string array with 2 length. The first suffix is user ID; the second suffix is password.

getReportsOfReportSet

public static java.util.Vector getReportsOfReportSet(java.lang.String reportSetFileName)
                                              throws jet.jetc.ReadFailureException
Parameters:
reportSetFileName - Indicates the reportset's file name with full path.
Returns:
a vector containing jet.bean.ReportInfo.
Throws:
jet.jetc.ReadFailureException

getReportsOfReportSet

public static java.util.Vector getReportsOfReportSet(java.lang.String catName,
                                                     java.lang.String reportSetFileName)
                                              throws jet.jetc.ReadFailureException
Gets the report information.

Parameters:
catName - Indicates the catalog file name with full path.
reportSetFileName - Indicates the reportset file name with full path.
Returns:
a vector containing jet.bean.ReportInfo.
Throws:
jet.jetc.ReadFailureException

getReportsOfReportSet

public java.util.Vector getReportsOfReportSet()
                                       throws jet.jetc.ReadFailureException
Gets the report information.

Returns:
a vector containing jet.bean.ReportInfo.
Throws:
jet.jetc.ReadFailureException

getReportsOfResult

public java.util.Vector getReportsOfResult(java.lang.String rstFileName)
Gets the report information from the result file.

Parameters:
rstFileName - The JReport rst file Name.
Returns:
a vector containing jet.bean.ReportInfo.

printReportJDK14

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 jet.export.print.NoSuchPrintAttributeException
Prints the report with the specified parameters.

Parameters:
bInteractive - A boolean value. If you set it to true, a print setup dialog will be presented to the user for changing the properties of the print job. Otherwise the print setup dialog will not be shown up.
bInBackground - A boolean value. If you set it to false, the printing progress dialog with a printing progress bar in it will be shown.
jreportprintlistener - The listener of the print. It is an interface which contains two methods, 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 - Specifies the print job's name.
attributeInfo - A vector whose elements are string. Each string are defined in the interface PrintConfig. For example,you can implement PrintConfig and call its fields like this:
    attributeInfo.add(TRAY_MANUAL);
    attributeInfo.add(ORIENTATION_PORTRAIT);
    
customMedias - A vector whose elements are some instances of CustomMedia. Until now, JReport provides the following CustomMedia: CustomMediaCopies, CustomMediaMargin, and CustomMediaTray. CustomMediaCopies Indicates printed copies. CustomMediaMargin Indicates the page margin when printing. You may create an instance of CustomMediaMargin which includes four values representing the left, right, top and bottom margin separately. CustomMediaTray Indicates the special tray which is not the standard tray defined in java. If you want to specify a special tray, you must specify a printer name. Otherwise this tray will be found in the default printer. If the specify printer has not such a tray, a NoSuchPrintAttributeException will be thrown. If needed, you may get all media trays' names in a special printer by calling 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 - Specifies 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 the 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);
    }
Throws:
jet.export.print.NoSuchPrintAttributeException - if these parameters in attributeInfo or customMedias are not supported, or if the JDK version is less than JDK 1.4.0.
Since:
version 7.x SP2, version 8.0
See Also:
PrintConfig, CustomMediaCopies, CustomMediaMargin, CustomMediaTray, CustomJobPriority, CustomMediaPaper, CustomPageRanges, CustomToFile, CustomUserName, jet.bean.CutomJobName

getAllMediaTray

public static java.util.Vector getAllMediaTray(java.lang.String printerName)
                                        throws jet.export.print.NoSuchPrintAttributeException
Gets all media tray for the specified printer. This can be done only in JDK14 and advanced JDK versions.

Throws:
jet.export.print.NoSuchPrintAttributeException

getCurrentReport

public ReportInfo getCurrentReport()
Gets the current report information.

Returns:
report information.

getRuntimeInfo

public RuntimeInfo getRuntimeInfo()
Deprecated. Replaced by getRuntimeInfo(String reportName) Gets RuntimeInfo instance of JREngine.

Returns:
a RuntimeInfo instance.

setRuntimeInfo

public void setRuntimeInfo(RuntimeInfo runtimeInfo)
Deprecated. Replaced by setRuntimeInfo(String reportName, RuntimeInfo runtimeInfo). Sets runtimeInfo of JREngine.

Parameters:
runtimeInfo - The runtimeInfo to be set.

setRuntimeInfos

public void setRuntimeInfos(java.util.HashMap runtimeInfos)
Sets RuntimeInfos of the reportset. The key is the report instance name; the value is RuntimeInfo.


getRuntimeInfos

public java.util.HashMap getRuntimeInfos()
Gets RuntimeInfos of the reportset.

Returns:
Hashmap of RuntimeInfos. The key is the report instance name; the value is RuntimeInfo.

setIsLinkReport

public void setIsLinkReport(java.lang.String rptName,
                            boolean isLinkReport)

setRuntimeInfo

public void setRuntimeInfo(java.lang.String reportName,
                           RuntimeInfo runtimeInfo)
Sets RuntimeInfo of the report.

Parameters:
reportName - Report instance name.
runtimeInfo - RuntimeInfo of the specified report.

getRuntimeInfo

public RuntimeInfo getRuntimeInfo(java.lang.String reportName)
Gets RuntimeInfo of the report.

Parameters:
reportName - Report instance name.
Returns:
RuntimeInfo of the specified report.

relayout

public boolean relayout(java.lang.String reportName,
                        RuntimeInfo info)
Re-runs the report with the specified RuntimeInfo.

Parameters:
reportName - Report instance name.
info - RuntimeInfo Indicates the information for the re-run report, such as precision and style.
Returns:
true if it is re-run sucessfully, otherwise false.

setNLSBundleInfo

public void setNLSBundleInfo(NLSBundleInfo info)
Sets NLS resource bundled information.

Parameters:
info - NLS resource bundled information interface.

getNLSBundleInfo

public NLSBundleInfo getNLSBundleInfo()
Gets NLS resource bundled information.


setNLSApplyParamInfo

public void setNLSApplyParamInfo(jet.util.nls.NLSApplyParam info)
Sets all NLS resource bundled information.

Parameters:
info - NLS resource bundled information interface.

getNLSApplyParamInfo

public jet.util.nls.NLSApplyParam getNLSApplyParamInfo()
Gets NLS resource bundled information.


isIgnoreExportStyle

public boolean isIgnoreExportStyle(boolean ignoreExportStyle)
Sets if the report exporting ignores export style.


isIgnoreExportStyle

public boolean isIgnoreExportStyle()
Gets if the report exporting ignores export style.

Returns:
if the report exporting ignores export style.

setXmlStreamFactory

public void setXmlStreamFactory(java.lang.String datasourceName,
                                InputStreamFactory streamFactory)
                         throws jet.rptservice.api.exception.JRScheduleException
Sets an xml data stream factory.

Parameters:
datasourceName - Indicates the data source name.
streamFactory - User implemented InputStreamFactory.
Throws:
jet.rptservice.api.exception.JRScheduleException

getXmlStreamFactory

public InputStreamFactory getXmlStreamFactory(java.lang.String datasourceName)
Gets an xml data stream factory.

Parameters:
datasourceName - Indicates the data source name.
Returns:
InputStreamFactory

setHDSStreamFactory

public void setHDSStreamFactory(java.lang.String datasourceName,
                                java.lang.String HDSName,
                                InputStreamFactory streamFactory)
                         throws jet.rptservice.api.exception.JRScheduleException
Sets an HDS data stream factory.

Parameters:
datasourceName - Indicates the data source name.
HDSName - Indicates the HDS name.
streamFactory - User implemented HDS InputStreamFactory.
Throws:
jet.rptservice.api.exception.JRScheduleException

getHDSStreamFactory

public InputStreamFactory getHDSStreamFactory(java.lang.String datasourceName,
                                              java.lang.String HDSName)
Gets an HDS data stream factory.

Parameters:
datasourceName - Indicates the data source name.
HDSName - Indicates the HDS name.
Returns:
HDS InputStreamFactory.