public interface ReportEngine
ReportEngine
can do some operations with the engine,
such as run and export report, set connection, etc.Modifier and Type | Method and Description |
---|---|
boolean |
addFileQuery(java.lang.String strName,
java.io.File flPath)
Adds the specified file query to the current catalog.
|
boolean |
addFileQuery(java.lang.String strName,
java.io.File flPath,
java.lang.String sourceName)
Adds the specified file query to the current catalog.
|
void |
closeLog()
Closes the log stream.
|
void |
configMailServer(java.lang.String SMTPServerIP,
java.lang.String MyMailAddress,
int SMTPServerPort)
Configures the mail server.
|
boolean |
deleteWherePortion(java.lang.String strName)
Removes the specified where portion and saves the catalog.
|
boolean |
deleteWherePortion(java.lang.String strName,
java.lang.String sourceName)
Removes the specified where portion and saves the catalog.
|
void |
exit()
When you want to quit from JReport Engine Bean, you should call this method.
|
boolean |
exportToDhtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin,
java.lang.String title,
int resolution,
int overflowType)
Exports the current report to HTML.
|
boolean |
exportToDhtml(java.lang.String rstFileName,
java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin,
java.lang.String title,
int resolution,
int overflowType)
Exports result report file (with the .rst extension) to an HTML file.
|
boolean |
exportToFax(ExportInfo info,
java.lang.String portStr,
java.lang.String initStr,
int iDialing,
int iFlowControl,
java.lang.String flowCommand,
int iClass,
int txtTimeOut,
int txtRetries,
boolean q_best,
boolean q_normal,
boolean q_fast,
boolean isAddCover,
java.lang.String faxnum,
java.lang.String from,
java.lang.String to,
java.lang.String company,
java.lang.String phone,
java.lang.String date,
java.lang.String re,
java.lang.String comments,
boolean urgent,
boolean review,
boolean comment,
boolean reply)
Exports the current report to fax.
|
boolean |
exportToFax(java.lang.String portStr,
java.lang.String initStr,
int iDialing,
int iFlowControl,
java.lang.String flowCommand,
int iClass,
int txtTimeOut,
int txtRetries,
boolean q_best,
boolean q_normal,
boolean q_fast,
boolean isAddCover,
java.lang.String faxnum,
java.lang.String from,
java.lang.String to,
java.lang.String company,
java.lang.String phone,
java.lang.String date,
java.lang.String re,
java.lang.String comments,
boolean urgent,
boolean review,
boolean comment,
boolean reply)
Exports the current report to fax.
|
boolean |
exportToHtml(ExportInfo info,
HtmlParameter param)
Exports the report to 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 current report to HTML.
|
boolean |
exportToHtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin,
java.lang.String title,
int resolution,
int overflowType,
int chartFormat)
Exports the current report to HTML.
|
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 the result report file (with the .rst extension) to an 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 result report file (with the .rst extension) to an HTML file.
|
void |
exportToMail(java.lang.String from,
java.lang.String rcpt,
java.lang.String cc,
java.lang.String bcc,
java.lang.String subject,
java.lang.String comments,
boolean compress,
int rptformat,
boolean noMargin,
int udwidth,
int udheight,
boolean isSimPrintMode,
int isCompressImage,
boolean isDataOnlyXML,
java.lang.String xsdFile,
boolean hasHeadFoot,
boolean isGifTrans,
boolean bTxtCompress,
boolean isTable,
int isWordWrap,
boolean isBiff8,
int param,
boolean bToc,
boolean bDrill,
java.lang.String encoding)
Exports the current report to mail.
|
java.awt.print.Pageable |
ExportToPageable()
Exports to Pageable object.
|
boolean |
exportToPDF(ExportInfo info,
PDFParameter param)
Exports the report to PDF file.
|
boolean |
exportToPdf(java.lang.String pdfFileName,
boolean noMargin,
boolean isSimPrintMode,
int isCompressImage,
boolean isTransparent,
boolean bToc,
boolean bDrill,
java.lang.String password)
Exports the current report to a PDF file.
|
boolean |
exportToPdf(java.lang.String rstFileName,
java.lang.String pdfFileName,
boolean noMargin,
boolean isSimPrintMode,
int isCompressImage,
boolean isTransparent,
boolean bToc,
boolean bDrill,
java.lang.String password)
Exports the current report to a PDF file.
|
boolean |
exportToPS(ExportInfo info,
PSParameter param)
Exports the report to postscript file.
|
boolean |
exportToPS(java.lang.String psFileName,
boolean noMargin)
Exports the current report to a PS (PostScript) file.
|
boolean |
exportToPS(java.lang.String rstFileName,
java.lang.String psFileName,
boolean noMargin)
Exports the report result file (with the .rst extension) to a PS (PostScript) file.
|
boolean |
exportToRst(java.util.Map reportInfo,
java.lang.String rstFileName,
boolean isZip)
Saves reports and views to a .rst file.
|
boolean |
exportToRst(java.lang.String rstFileName)
Saves the current report to a .rst file.
|
boolean |
exportToRst(java.lang.String loadRstFileName,
java.lang.String rstFileName)
Loads an .rst file and saves to another .rst file.
|
boolean |
exportToRtf(ExportInfo info,
RtfParameter param)
Exports the report to RTF file.
|
boolean |
exportToRtf(java.lang.String rtfFileName,
boolean noMargin)
Exports the current report to RTF (Rich Text Format).
|
boolean |
exportToRtf(java.lang.String rstFileName,
java.lang.String rtfFileName,
boolean noMargin)
Exports the report result file (with the .rst extension) to RTF (Rich Text Format).
|
boolean |
exportToText(ExportInfo info,
TextParameter param)
Exports the report to text file.
|
boolean |
exportToText(java.lang.String textFileName,
boolean isNormalText,
boolean isRepeat,
char delimiter,
int udchWidth,
int udchHeight,
boolean compress,
int resolution,
boolean quoteMark,
boolean hasHeadFoot,
boolean forWindows)
Exports current report to a TEXT file.
|
boolean |
exportToText(java.lang.String 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 the result report file (with the .rst extension) to a TEXT file.
|
boolean |
exportToXls(ExportInfo info,
ExcelParameter param)
Exports the report to Excel file.
|
boolean |
exportToXls(java.lang.String xlsFileName,
int isWordWrap,
boolean isBiff8,
int param,
boolean shareLabel)
Exports the report to BIFF (Binary File Format).
|
boolean |
exportToXls(java.lang.String rstFileName,
java.lang.String xlsFileName,
int isWordWrap,
boolean isBiff8,
int param,
boolean shareLabel)
Exports the report result file (with the .rst extension) to BIFF (Binary File Format).
|
boolean |
exportToXML(ExportInfo info,
XmlParameter param)
Exports the report to xml file.
|
boolean |
exportToXML(java.lang.String xmlFileName,
boolean isOnlyData,
java.lang.String existXSFile)
Exports the current report to XML.
|
boolean |
exportToXML(java.lang.String rstFileName,
java.lang.String xmlFileName,
boolean isOnlyData,
java.lang.String existedSchemaFile)
Exports the specified report result to XML.
|
boolean |
exportToXMLObject(boolean isOnlyData,
java.lang.String existedSchemaFile)
Initializes exporting the current report to XML Element.
|
boolean |
exportToXMLObject(java.lang.String rstFileName,
boolean isOnlyData,
java.lang.String existedSchemaFile)
Initializes exporting the specified report result to XML Element.
|
java.util.Vector |
getAllHtmlFile()
Returns all html files that are generated by exportToHtml.
|
java.util.Vector |
getAllPdfFile()
Returns all pdf files that are generated by exportToPdf.
|
java.util.Vector |
getAllRtfFile()
Returns the output file of export to rtf
|
java.util.Vector |
getAllXlsFile()
Returns the output file of export to xls.
|
java.util.Vector |
getAllXMLFile()
Returns the output file of export to xml.
|
java.util.Vector |
getAvailableLocales(java.lang.String clt)
Gets all of the locales that the current report supports.
|
java.util.Enumeration |
getAvailableQueryFields()
Gets the available fields of the query.
|
java.util.Enumeration |
getAvailableWherePortions()
Gets the enumeration of all the where portion names in the catalog.
|
java.lang.String |
getCatName()
Gets the name of the catalog.
|
java.lang.String |
getClientName()
Gets the client name.
|
Communicator |
getCommunicator()
Gets Communicator object.
|
Communicator |
getCommunicator(boolean security)
Gets Communicator object.
|
Communicator |
getCommunicator(java.lang.String filename,
int[] pageNums)
Gets Communicator object.
|
int |
getConvertFromEncoding()
Gets the original encoding.
|
int |
getConvertToEncoding()
Gets the target encoding.
|
java.lang.String |
getDataDriver()
Gets the data driver of the report which the engine will run.
|
java.util.Vector |
getDetailsFields()
Gets all the fields information in the details section including the fields in all subreports.
|
java.lang.String |
getHelpPath()
Gets the help path.
|
int |
getID()
Gets the id of the engine.
|
java.lang.String |
getJoinCondition()
Gets join portion condition clause in SQL statement.
|
java.lang.String |
getLoadReport()
Gets the loading report flag.
|
java.util.Locale |
getLocale()
Gets the locale.
|
int[] |
getPageNumbers()
Gets the page numbers of page level security.
|
int |
getPageOrientation()
Gets the page orientation.
|
java.util.Hashtable |
getParamDescs()
Gets all objects of ParamDesc in the report.
|
java.lang.String |
getParamFile()
Sets the name of the parameter values file.
|
java.util.Hashtable |
getParamToSubRpt()
Gets the parameter name to the subreport name relationship.
|
java.lang.String |
getParamValues()
Gets the parameter values of the report.
|
java.lang.String |
getPrintStatus()
Gets print status after printing.
|
java.lang.String |
getReason()
Get the error reason after an error occurs.
|
int |
getRecordLength()
Gets the length of record.
|
Communicator |
getReportCommunicator()
Gets the Communicator object of the report.
|
java.lang.String |
getReportHome()
Gets the report home path where the report.ini and
other JReport system files exist.
|
java.lang.String |
getReportName()
Gets the name of the report.
|
java.util.Vector |
getReportParams(java.lang.String userName)
Gets all parameters in this report.
|
java.util.Vector |
getReportParams(java.lang.String userName,
boolean bFirstLevel)
Gets all parameters in this report.
|
java.util.Vector |
getReportParams(java.lang.String userName,
java.lang.String paramName,
java.lang.String paramValue,
boolean isAll)
Gets the parameters related to the parameter specified by parameter and value.
|
java.lang.String |
getResultFile()
Gets the name of the result file which will be generated
by JReport Engine Bean.
|
java.lang.String |
getResultSet(java.lang.String url)
Gets the cache query result set of the report which the engine will run.
|
java.util.Hashtable |
getRptDescs()
Returns current universe's report Description, the key is report file name (with" .cls"), the value is the description.
|
java.lang.String |
getSID()
Gets the security identifier of page level security.
|
boolean |
getSingleThread()
Checks whether the current engine is single-thread.
|
java.lang.String |
getSQL()
Gets the sql statement of this report.
|
java.lang.String |
getStatus()
Gets the status after an action.
|
java.util.Vector |
getStyleGroupNames()
Gets all style group names in the template.
|
java.lang.String |
getTemplatePath()
Gets the template path.
|
java.lang.String |
getTempPath()
Gets the temporary path.
|
java.lang.Throwable |
getThrowable()
Gets the throwable error information.
|
boolean |
getThrowException()
Returns true if the engine throws exception while the program throws exception.
|
java.util.TimeZone |
getTimeZone()
Gets the time zone.
|
int |
getTotalPageNumber()
Gets the total page number of the report.
|
java.lang.String |
getWhereCondition()
Gets where portion conditions clause in SQL statement.
|
java.lang.String |
getWherePortionsSQL(java.lang.String nameOfWherePortion)
Gets the specified where portion.
|
java.lang.String |
getWherePortionsSQL(java.lang.String nameOfWherePortion,
java.lang.String sourceName)
Gets the specified where portion.
|
boolean |
hasPageSecurity()
Checks the current report security.
|
boolean |
hasParameter()
Checks whether the current report has parameters.
|
boolean |
loadReport()
Loads report.
|
void |
modifyUserInfo(java.lang.String strUserName,
java.lang.String strPassword,
java.lang.String dataSourceName)
Modifies the User and Password information in the specified
connection description.
|
boolean |
modifyWherePortion(java.lang.String strName,
java.lang.String strSQL)
Modifies the specified where portion in the current query and saves the catalog.
|
boolean |
modifyWherePortion(java.lang.String strName,
java.util.Vector vecGroups)
Modifies the specified where portion in the current query and saves the catalog.
|
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 with the specified parameters.
|
org.w3c.dom.Element |
publishXMLNextPage()
Returns the next xml object when exporting to xml object.
|
void |
runReport()
Launches to run JReport Engine Bean.
|
void |
runReport(boolean genRst)
Specifies whether to output reports to rst file or not.
|
void |
runReport(java.util.Vector vReportName)
Runs the specified reports in the report set.
|
boolean |
save(java.lang.String resultFileName)
Saves the current report to result file.
|
boolean |
saveCatalog()
Saves the catalog.
|
boolean |
saveWherePortion(java.lang.String strName,
java.lang.String strSQL)
Saves the specified where portion to the current query and saves the catalog.
|
boolean |
saveWherePortion(java.lang.String strName,
java.lang.String dataSourceName,
java.lang.String strQueryName,
java.lang.String strSQL)
Saves the where portion to the specified query and saves the catalog.
|
boolean |
saveWherePortion(java.lang.String strName,
java.lang.String dataSourceName,
java.lang.String strQueryName,
java.util.Vector vecGroups)
Saves the where portion to the specified query and saves the catalog.
|
boolean |
saveWherePortion(java.lang.String strName,
java.util.Vector vecGroups)
Saves the specified where portion to the current query and saves the catalog.
|
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)
Exports the current report that has already run to mail.
|
void |
setCatName(java.lang.String catName)
Sets the name of the catalog.
|
void |
setClientName(java.lang.String name)
Sets the client name.
|
void |
setConnection(java.sql.Connection userDbConnection,
boolean fetchSupportInfo)
Sets the connection required to run the engine.
|
void |
setConnection(java.lang.String strURL,
java.lang.String strUID,
java.lang.String strPSWD,
java.lang.String strJdbcDriver,
boolean fetchSupportInfo)
Sets the connection required to run the engine.
|
void |
setConvertEncoding(int fromEncoding,
int toEncoding)
Sets the original encoding and the target encoding when converting the encoding
|
void |
setDataDriver(java.lang.String url)
Sets the data driver of the report dataset which the engine will use.
|
void |
setEncoding(java.lang.String encoding)
Sets the current encoding.
|
void |
setFetchSupportInfo(boolean fetchSupportInfo)
Sets true to get the user support information.
|
void |
setHelpPath(java.lang.String sHelpPath)
Sets the help path.
|
void |
setLoadReport(java.lang.String loadReport)
Enables/disables to run the report.
|
void |
setLocale(java.util.Locale currentLocale)
Sets the current locale.
|
void |
setLocale(java.lang.String language,
java.lang.String country)
Sets the current locale by the string language and country.
|
boolean |
setLogFile(java.lang.String fileName)
Sets the log file.
|
void |
setNamedWherePortion(java.lang.String name)
Sets the where portion name in the query.
|
void |
setPageNumbers(int[] pageNums)
Sets the page numbers of page level security.
|
void |
setParamFile(java.lang.String paramFile)
Sets the name of the parameter values file.
|
void |
setParamValues(java.lang.String paramValues)
Sets the parameter values of the report.
|
void |
setPrintStatus()
Sets the print status before printing.
|
void |
setPriority(int pri)
Sets the engine priority.
|
void |
setReportHome(java.lang.String reportHome)
Sets the report home path where the report.ini and
other JReport system files exist.
|
void |
setReportName(java.lang.String reportName)
Sets the name of the report.
|
void |
setResultFile(java.lang.String resultFile)
Specifies the name of the result file which will be generated
by JReport Engine Bean.
|
void |
setResultSet(java.lang.String url)
Sets the cache query result set of the report which the engine will run.
|
void |
setShowInfoLevel(int level)
Enables/disables outputting error and debug message.
|
void |
setSID(java.lang.String sid)
Sets the security identifier of page level security.
|
void |
setSingleThread(boolean single)
Sets the report engine to use single thread or not.
|
void |
setStyleGroup(java.lang.String styleGroupName)
Sets the style group.
|
void |
setTemplatePath(java.lang.String sTemplatePath)
Sets the template path.
|
void |
setTempPath(java.lang.String sTempPath)
Sets the temporary path.
|
void |
setThrowException(boolean isThrowException)
Sets whether to throw exception while the program throws exception.
|
void |
setTimeZone(java.lang.String timeZone)
Sets the current time zone by a string.
|
void |
setTimeZone(java.util.TimeZone curTimeZone)
Sets the current time zone.
|
void |
setUserName(java.lang.String name)
Sets the user name.
|
void |
setUserResultSet(java.sql.ResultSet userResultSet)
Sets the resultset required to run the report.
|
void |
setWherePortion(java.lang.String where)
Sets the where portion in the SQl query.
|
void |
stopReport()
Stops running the report.
|
void |
waitForEngineFinish()
Waits until the engine processes successfully.
|
boolean |
xmlHasNextPage()
Judges whether there is the next page when export to xml object.
|
int getID()
void setConvertEncoding(int fromEncoding, int toEncoding)
fromEncoding
- the original encoding.toEncoding
- the target encoding.int getConvertFromEncoding()
int getConvertToEncoding()
void setPriority(int pri)
pri
- the engine priority.void setSingleThread(boolean single)
single
- true to use single-thread, otherwise use multi-thread.boolean getSingleThread()
void setStyleGroup(java.lang.String styleGroupName)
styleGroupName
- the name of the style group.void setLocale(java.util.Locale currentLocale)
currentLocale
- the current locale.void setLocale(java.lang.String language, java.lang.String country)
language
- country
- void setEncoding(java.lang.String encoding)
encoding
- java.util.Vector getAvailableLocales(java.lang.String clt)
clt
- the current client's locale.void setTimeZone(java.util.TimeZone curTimeZone)
curTimeZone
- the current time zone.void setTimeZone(java.lang.String timeZone)
timeZone
- the time zonevoid setClientName(java.lang.String name)
name
- the client name.java.lang.String getClientName()
void setTempPath(java.lang.String sTempPath)
sTempPath
- the temporary path (absolute path).java.lang.String getTempPath()
void setTemplatePath(java.lang.String sTemplatePath)
sTemplatePath
- the template path (absolute path).java.lang.String getTemplatePath()
void setHelpPath(java.lang.String sHelpPath)
sHelpPath
- the help path (absolute path).java.lang.String getHelpPath()
java.lang.String getReportName()
java.lang.String getReportHome()
void setReportHome(java.lang.String reportHome)
reportHome
- the home path where the report.ini and
other JReport system files exist.void setReportName(java.lang.String reportName)
reportName
- the name of the report which will be run.void setCatName(java.lang.String catName)
catName
- the name of the catalog.java.lang.String getCatName()
void setSID(java.lang.String sid)
sid
- the security identifier.void setPageNumbers(int[] pageNums)
pageNums
- an int array of the page numbers.int[] getPageNumbers()
java.lang.String getSID()
boolean hasPageSecurity()
int getPageOrientation()
java.lang.String getParamValues()
void setParamValues(java.lang.String paramValues)
paramValues
- the string containing the parameter values
and separated by commas (',').java.lang.String getParamFile()
void setParamFile(java.lang.String paramFile)
Every parameter name and value pair occupies one line in the file (except that if a line ends with \, see bellow.) The name and value is separated by an equals sign '=' (if it exists), and the name is always on the left side and 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 the value string of the current line (without the last '\'), a new line character ('\n') and the string of next line will be concatenated together. But if a line ends with "\\", "\\" will be treated as the termination character of the value string and a single '\' will be appended to the value.
3. This rule only applies to the name expression. If an equal sign follows "\\", 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", the value is "c+d".
paramFile
- the name of the parameter values file.
This will be ignored if the paramValues is specified.java.lang.String getResultFile()
void setResultFile(java.lang.String resultFile)
resultFile
- the name of the result file.void setResultSet(java.lang.String url)
url
- the cache query result set of the report which the engine will run.java.lang.String getResultSet(java.lang.String url)
url
- the cache query result set of the report which the engine will run.void setDataDriver(java.lang.String url)
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 is started with the schema "CatalogQuery", the data driver of the dataset will be ignored.java.lang.String getDataDriver()
java.lang.String getLoadReport()
void setLoadReport(java.lang.String loadReport)
loadReport
- a String. If it equals "yes" (case insensitive)
the report will be run.void setThrowException(boolean isThrowException)
isThrowException
- if to throw exceptionboolean getThrowException()
java.lang.Throwable getThrowable()
boolean loadReport() throws java.lang.Exception
java.lang.Exception
void runReport(boolean genRst)
genRst
- decides to output to rst file or not.void runReport()
void runReport(java.util.Vector vReportName) throws java.lang.Exception
vReportName
- indicates which reports in the report set will be run.java.lang.Exception
Communicator getReportCommunicator()
void waitForEngineFinish()
boolean save(java.lang.String resultFileName) throws java.lang.Exception
resultFileName
- the result file name containing full path.java.lang.Exception
int getTotalPageNumber()
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)
printJob
- the print job of this print action.pageFormat
- the page format of this print action.bInteractive
- a boolean value. If you set it to false, the print setup dialog will not show up.bInBackground
- a boolean value. If you set it to false, the printing dialog will not show up.bUseJDK11
- a boolean value. If you set it to true, it will use JDK1.1.x
to print the report. Otherwise if you set it to false, it will use the JDK
which you are running to print the report. The JDK 1.1 printing method is
quick in speed but the printing quality is not guaranteed. However, The
JDK 1.2 method can return you with satisfactory result, even for a gif file,
but it is slow in speed.
For example, if bUseJDK11 is set to false, you can call the printReport method like this:
PrinterJob printJob = PrinterJob.getPrinterJob();
bean.printReport(printJob, printJob.defaultPage(), false, false, false);bSeparateLargePage
- a boolean value. If the report page size is larger
than the print paper size, and you want to separate the large report page
during printing, you should set this property to true. If the print page size
which you choose is less than the report page size, then the report will be
printed as multiple pages serially, this means JReport will separate the large
page of the report automatically.
After you set it to true, for JDK1.2 or higher, the page format dialog will
be popped up. In this dialog, you can choose the page format which you want
to print with, and JReport will use this page size for printing. For JDK1.1.x, however,
you must change the page format which you want to print with in the print
dialog (click the property button, then choose the page format).
Note: This printing method is not recommended, it may cause some unexpected
errors, for example, you may get an extra blank page.java.lang.String getPrintStatus()
void setPrintStatus()
java.awt.print.Pageable ExportToPageable()
void exit()
Communicator getCommunicator(java.lang.String filename, int[] pageNums) throws java.io.IOException
filename
- the file name.pageNums
- an int array of the page numbers.java.io.IOException
Communicator getCommunicator()
Communicator getCommunicator(boolean security)
security
- indicates if it needs security.void stopReport()
void setShowInfoLevel(int level)
level
- the debug level, for example, vDebug | vErrorvoid closeLog()
When all the engines have finished you can call the method.
boolean setLogFile(java.lang.String fileName)
fileName
- the log file name.
LogFileName specifies where the debug, error and other information will go. LogFileName contains both the path and the file name. If no path is specified, the current path is used. If no file name is specified, the file jreport.log is used.
java.lang.String getStatus()
java.lang.String getReason()
boolean hasParameter()
java.util.Vector getStyleGroupNames()
java.util.Vector getReportParams(java.lang.String userName, java.lang.String paramName, java.lang.String paramValue, boolean isAll) throws java.lang.Exception
userName
- the user name.paramName
- If it is null, return all parameters used by the
current report in a proper order and each of them is not other parameter's value.paramValue
- the new value.
It may lead to the new parameters' vector returning back, or the parameter with new drop down list valueisAll
- if to return all parameter collection.
Returns a Vector each element of this Vector is jet.formula.ParamDescjava.lang.Exception
java.util.Vector getReportParams(java.lang.String userName, boolean bFirstLevel) throws java.lang.Exception
userName
- the user name.bFirstLevel
- if to return only the first level parameters.java.lang.Exception
java.util.Vector getReportParams(java.lang.String userName) throws java.lang.Exception
userName
- the user name.java.lang.Exception
java.util.Hashtable getParamDescs()
java.util.Hashtable getParamToSubRpt()
boolean exportToRst(java.lang.String loadRstFileName, java.lang.String rstFileName)
loadRstFileName
- the source rst file name containing full path.rstFileName
- the target rst file name containing full path.boolean exportToRst(java.lang.String rstFileName)
rstFileName
- the rst file name containing full path.boolean exportToRst(java.util.Map reportInfo, java.lang.String rstFileName, boolean isZip)
rstFileName
- the rst file name containing full path.reportInfo
- report information of the exported reports. The key is report name string,
the value is a view name vector, and each element is view name string of a report.isZip
- whether it is a zip 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)
rstFileName
- the result file name.htmlFileName
- the HTML file name.bChartApplet
- no longer supports applets after V16, this parameter setting does not take effect.isMultiFile
- indicates whether to export the html to a file or to multiple files (true).bUsingTable
- indicates whether to use html table format when exporting html files (false)bHyperlink
- indicates whether to generate a hyperlink (true).bPageNum
- indicates whether to generate page numbers (true).bAbsolute
- indicates whether the font size is absolute or relative (true).iBrowser
- indicates the browser is IE or Firefox. The value of
parameter int browser must be one of the IE or Firefox (ReportEngineConst.IE).bincdrilldownfile
- indicates to enable the drilldown feature in the html files (false).noMargin
- indicates to generate the html files without page Margin (false).title
- the title of the exported html file (null).resolution
- indicates the resolution of the html files (-1).overflowType
- Indicates the html text overflow type (ReportEngineConst.HIDDEN)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)
rstFileName
- the result file name.htmlFileName
- the HTML file name.bChartApplet
- no longer supports applets after V16, this parameter setting does not take effect.isMultiFile
- indicates whether to export the html to a file or to multiple files (true).bUsingTable
- indicates whether to use html table format when exporting html files (false).bHyperlink
- indicates whether to generate a hyperlink (true).bPageNum
- indicates whether to generate page numbers (true).bAbsolute
- indicates whether the font size is absolute or relative (true).iBrowser
- indicates the browser is IE or Firefox. The value of
parameter int browser must be one of the IE or Firefox (ReportEngineConst.IE).bincdrilldownfile
- indicates to enable the drilldown feature in the html files (false).noMargin
- indicates to generate the html files without page Margin (false).title
- the title of the exported html file (null).resolution
- indicates the resolution of the html files (-1).overflowType
- Indicates the html text overflow type (ReportEngineConst.HIDDEN)chartFormat
- Indicates the html image chart format type.boolean exportToHtml(java.lang.String htmlFileName, boolean bChartApplet, boolean isMultiFile, boolean bUsingTable, boolean bHyperlink, boolean bPageNum, boolean bAbsolute, int iBrowser, boolean bincdrilldownfile, boolean noMargin, java.lang.String title, int resolution, int overflowType)
htmlFileName
- the HTML file name.bChartApplet
- no longer supports applets after V16, this parameter setting does not take effect.isMultiFile
- indicates whether to export the html to a file or to multiple files (true).bUsingTable
- indicates whether to use html table format when exporting html files (false).bHyperlink
- indicates whether to generate a hyperlink (true).bPageNum
- indicates whether to generate page numbers (true).bAbsolute
- indicates whether the font size is absolute or relative (true).iBrowser
- indicates the browser is IE or Firefox. The value ofbincdrilldownfile
- indicates the drilldown html files are included in the file list (false)noMargin
- indicates to generate the html files without page margin (false).title
- the title of the exported html file (null).resolution
- indicates the resolution of the html files (-1).overflowType
- Indicates the html text overflow type (ReportEngineConst.HIDDEN)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)
htmlFileName
- the HTML file name.bChartApplet
- no longer supports applets after V16, this parameter setting does not take effect.isMultiFile
- indicates whether to export the html to a file or to multiple files (true).bUsingTable
- indicates whether to use html table format when exporting html files (false).bHyperlink
- indicates whether to generate a hyperlink (true).bPageNum
- indicates whether to generate page numbers (true).bAbsolute
- indicates whether the font size is absolute or relative (true).iBrowser
- indicates the browser is IE or Firefox. The value ofbincdrilldownfile
- indicates the drilldown html files are included in the file list (false)noMargin
- indicates to generate the html files without page margin (false).title
- the title of the exported html file (null).resolution
- indicates the resolution of the html files (-1).overflowType
- Indicates the html text overflow type (ReportEngineConst.HIDDEN)chartFormat
- Indicates the html image chart format type.boolean exportToHtml(ExportInfo info, HtmlParameter param)
info
- The report information for export.param
- The HTML file information.java.util.Vector getAllHtmlFile()
java.util.Vector getAllPdfFile()
boolean exportToDhtml(java.lang.String rstFileName, java.lang.String htmlFileName, boolean bChartApplet, boolean isMultiFile, boolean bUsingTable, boolean bHyperlink, boolean bPageNum, boolean bAbsolute, int iBrowser, boolean bincdrilldownfile, boolean noMargin, java.lang.String title, int resolution, int overflowType)
rstFileName
- the result file name.htmlFileName
- the HTML file name.bChartApplet
- no longer supports applets after V16, this parameter setting does not take effect.isMultiFile
- indicates whether to export the html to a file or to multiple files (true).bUsingTable
- indicates whether to use html table format when exporting html files (false).bHyperlink
- indicates whether to generate a hyperlink (true).bPageNum
- indicates whether to generate page numbers (true).bAbsolute
- indicates whether the font size is absolute or relative (true).iBrowser
- indicates the browser is IE or Firefox. The value of
parameter int browser must be one of the IE or Firefox. (ReportEngineConst.IE)bincdrilldownfile
- indicates to enable the drilldown feature in the html files (false).noMargin
- indicates to generate the html files without page Margin (false).title
- the title of the exported html file (null).resolution
- indicates the resolution of the html files (-1).overflowType
- Indicates the html text overflow type (ReportEngineConst.HIDDEN)boolean exportToDhtml(java.lang.String htmlFileName, boolean bChartApplet, boolean isMultiFile, boolean bUsingTable, boolean bHyperlink, boolean bPageNum, boolean bAbsolute, int iBrowser, boolean bincdrilldownfile, boolean noMargin, java.lang.String title, int resolution, int overflowType)
htmlFileName
- the HTML file name.bChartApplet
- no longer supports applets after V16, this parameter setting does not take effect.isMultiFile
- indicates whether to export the html to a file or to multiple files (true).bUsingTable
- indicates whether to use html table format when exporting html files (false).bHyperlink
- indicates whether to generate a hyperlink (true).bPageNum
- indicates whether to generate page numbers (true).bAbsolute
- indicates whether the font size is absolute or relative (true).iBrowser
- indicates the browser is IE or Firefox. The value ofbincdrilldownfile
- indicates the drilldown html files are included in the file list (false)noMargin
- indicates to generate the html files without page margin (false).title
- the title of the exported html file (null).resolution
- indicates the resolution of the html files (-1).overflowType
- Indicates the html text overflow type (ReportEngineConst.HIDDEN)boolean exportToPdf(java.lang.String pdfFileName, boolean noMargin, boolean isSimPrintMode, int isCompressImage, boolean isTransparent, boolean bToc, boolean bDrill, java.lang.String password)
pdfFileName
- the PDF file name.noMargin
- indicates to generate the pdf file without page margin (false).isSimPrintMode
- indicates to generate the pdf file using simulated printing mode (false).isCompressImage
- indicatess whether to compress images in the pdf file (20).isTransparent
- - indicates whether to keep transparent gif images in the pdf file (false).bToc
- indicates to generate the pdf file with TOC (false).bDrill
- indicates to generate the pdf file with the Drill Down feature enabled (false).password
- indicates to generate the pdf file with encryption. If not to encrypt, password == null. (null)boolean exportToPdf(java.lang.String rstFileName, java.lang.String pdfFileName, boolean noMargin, boolean isSimPrintMode, int isCompressImage, boolean isTransparent, boolean bToc, boolean bDrill, java.lang.String password)
rstFileName
- the result file name.pdfFileName
- the PDF file name.noMargin
- indicates to generate the pdf file without page margin (false).isSimPrintMode
- indicates to generate the pdf file using simulated printing mode (false).isCompressImage
- indicatess whether to compress images in the pdf file (20).isTransparent
- - indicates whether to keep transparent gif images in the pdf file (false).bToc
- indicates to generate the pdf file with TOC (false).bDrill
- indicates to generate the pdf file with the Drill Down feature enabled (false).password
- indicates to generate the pdf file with encryption. If not to encrypt, password == null. (null)boolean exportToPDF(ExportInfo info, PDFParameter param)
info
- The report information for export.param
- The PDF file information.boolean exportToText(java.lang.String rstFileName, java.lang.String textFileName, boolean isNormalText, boolean isRepeat, char delimiter, int udchWidth, int udchHeight, boolean compress, int resolution, boolean quoteMark, boolean hasHeadFoot, boolean forWindows)
rstFileName
- the result file name.textFileName
- the TEXT file name.isNormalText
- sets whether this text file is in the normal text format
or standard data format.
The standard data format text file is the text file in which each row represents each record in the report. It can be used as a text data source to exchange data with other application (false).
isRepeat
- indicates whether to repeat the same contents (false).delimiter
- the delimiter used in the SDF (Standard Data Format) format (' ').udchWidth
- the width for each unit of the width clearance between columns (-1).udchHeight
- the height for each unit of the height clearance between columns (-1).compress
- removes empty lines or redundant delimiters in the exported text file (false).resolution
- defines the resolution by which the character is converted (-1)quoteMark
- keeps the quote character in the standard format text (true).hasHeadFoot
- the text has header and footer (true).forWindows
- indicates the platform on which the text file will be accessed (true).boolean exportToText(java.lang.String textFileName, boolean isNormalText, boolean isRepeat, char delimiter, int udchWidth, int udchHeight, boolean compress, int resolution, boolean quoteMark, boolean hasHeadFoot, boolean forWindows)
textFileName
- the TEXT file name.isNormalText
- sets whether this text file is in normal text format
or standard data format.
The standard data format text file is the text file in which each row represents each record in the report. It can be used as a text data source to exchange data with other application (false).
isRepeat
- indicates whether to repeat the same contents (false).delimiter
- the delimiter used in SDF (Standard Data Format) format (' ').udchWidth
- the width for each unit of the width clearance between columns (-1).udchHeight
- the height for each unit of the height clearance between columns (-1).compress
- removes empty lines or redundant delimiters in the exported text file (false).resolution
- defines the resolution by which the character is converted (-1).quoteMark
- keeps the quote character in the standard format text (true).hasHeadFoot
- the text has header and footer (true).forWindows
- indicates the platform on which the text file will be accessed (true).boolean exportToText(ExportInfo info, TextParameter param)
info
- The report information for export.param
- The text file information.boolean exportToPS(java.lang.String rstFileName, java.lang.String psFileName, boolean noMargin)
rstFileName
- the result file name.psFileName
- the PS file name.noMargin
- indicates to export to PS file without page margin (false).boolean exportToPS(java.lang.String psFileName, boolean noMargin)
psFileName
- the PS file name.noMargin
- indicates to export to PS file without page margin (false).boolean exportToPS(ExportInfo info, PSParameter param)
info
- The report information for export.param
- The postscript file information.boolean exportToRtf(java.lang.String rtfFileName, boolean noMargin)
rtfFileName
- the Rtf file name.noMargin
- indicates to export to Rtf file without page margin (false).boolean exportToRtf(java.lang.String rstFileName, java.lang.String rtfFileName, boolean noMargin)
rstFileName
- the result file name.rtfFileName
- the Rtf file name.noMargin
- indicates to export to Rtf file without page margin (false).boolean exportToRtf(ExportInfo info, RtfParameter param)
info
- The report information for export.param
- The RTF file information.java.util.Vector getAllRtfFile()
boolean exportToXML(java.lang.String xmlFileName, boolean isOnlyData, java.lang.String existXSFile) throws java.lang.ClassNotFoundException
xmlFileName
- the XML file name.isOnlyData
- indicates that only database column information is exported to the XML file,
otherwise all report details including all the properties will be exported (false).existXSFile
- specifies the schema file which is based on when exporting to XML file. If set to null, create the schema file.java.lang.ClassNotFoundException
boolean exportToXML(java.lang.String rstFileName, java.lang.String xmlFileName, boolean isOnlyData, java.lang.String existedSchemaFile) throws java.lang.ClassNotFoundException
rstFileName
- the result file name.xmlFileName
- the XML file name.isOnlyData
- indicates that only database column information is exported to the XML file,
otherwise all report details including all the properties will be exported (false).existedSchemaFile
- specifies the schema file which is based on when exporting to XML file. If set to null, create the schema file.java.lang.ClassNotFoundException
boolean exportToXML(ExportInfo info, XmlParameter param) throws java.lang.ClassNotFoundException
info
- The report information for export.param
- The xml file information.java.lang.ClassNotFoundException
java.util.Vector getAllXMLFile()
boolean exportToXMLObject(java.lang.String rstFileName, boolean isOnlyData, java.lang.String existedSchemaFile)
rstFileName
- the result file name.isOnlyData
- indicates that only database column information is exported to the XML file,
otherwise all report details including all the properties will be exported.existedSchemaFile
- specifies the schema file which is based on when exporting to XML file. If set to null, create the schema file.boolean exportToXMLObject(boolean isOnlyData, java.lang.String existedSchemaFile)
isOnlyData
- indicates that only database column information is exported to the XML file,
otherwise all report details including all the properties will be exported.existedSchemaFile
- specifies the schema file which is based on when exporting to XML file. If set to null, create the schema file.boolean xmlHasNextPage()
org.w3c.dom.Element publishXMLNextPage()
boolean exportToXls(java.lang.String rstFileName, java.lang.String xlsFileName, int isWordWrap, boolean isBiff8, int param, boolean shareLabel)
rstFileName
- the result file name.xlsFileName
- the Xls file name.isWordWrap
- indicates whether to wordwrap the field.
The value must be KEEPORIGIN, NOWORDWRAP or WORDWRAPALL (ReportEngineConst.KEEPORIGIN)isBiff8
- indicates whether in Excel2000 format (false)param
- indicates whether to export shapes (ReportEngineConst.NOEXPORTSHAPE)shareLabel
- indicates whether to share label no matter whether it is repeated (false)boolean exportToXls(java.lang.String xlsFileName, int isWordWrap, boolean isBiff8, int param, boolean shareLabel)
xlsFileName
- the Xls file name.isWordWrap
- indicates whether to wordwrap the field.
The value must be KEEPORIGIN, NOWORDWRAP or WORDWRAPALL (ReportEngineConst.KEEPORIGIN).isBiff8
- indicates whether in Excel2000 format (false).param
- indicates whether to export shapes (ReportEngineConst.NOEXPORTSHAPE).shareLabel
- indicates whether to share label no matter whether it is repeated (false).boolean exportToXls(ExportInfo info, ExcelParameter param)
info
- The report information for export.param
- The Excel file information.java.util.Vector getAllXlsFile()
void configMailServer(java.lang.String SMTPServerIP, java.lang.String MyMailAddress, int SMTPServerPort)
SMTPServerIP
- the mail server IP address.MyMailAddress
- the sender's mail address.SMTPServerPort
- the mail server port.void exportToMail(java.lang.String from, java.lang.String rcpt, java.lang.String cc, java.lang.String bcc, java.lang.String subject, java.lang.String comments, boolean compress, int rptformat, boolean noMargin, int udwidth, int udheight, boolean isSimPrintMode, int isCompressImage, boolean isDataOnlyXML, java.lang.String xsdFile, boolean hasHeadFoot, boolean isGifTrans, boolean bTxtCompress, boolean isTable, int isWordWrap, boolean isBiff8, int param, boolean bToc, boolean bDrill, java.lang.String encoding) throws java.lang.Exception
from
- the address of the sender.rcpt
- the address of the recipient.cc
- the copy to address.bcc
- the blind copy to address.subject
- the mail subject.comments
- any text string for memoire.compress
- indicates whether to use java compress utilities to compress mail contents.rptformat
- the available choices are: rst file mail, html mail,
html files mail, pdf file mail, plain text mail and SDF format text mail.noMargin
- indicates to export the file without page Margin (false).udwidth
- and udheight the user defined character width and height used in plain text format (-1).isSimPrintMode
- indicates to generate the pdf file using simulated print mode (false).isCompressImage
- indicates to compress images in the pdf file (20).isDataOnlyXML
- indicates that the xml file has data only (false).xsdFile
- the .xsd file path.hasHeadFoot
- indicates if the text file has header and footer (true).isGifTrans
- indicates if the image is trnasparent (false).bTxtCompress
- indicates if the text is compressed (false).isTable
- indicates if the html has table (false).isWordWrap
- indicates whether to wordwrap the field.
The value must be KEEPORIGIN, NOWORDWRAP or WORDWRAPALL (ReportEngineConst.KEEPORIGIN).isBiff8
- indicates if the excel has excel2000 format (false).param
- indicates to generate the excel file with geometry object (ReportEngineConst.EXPORTSHAPE).bToc
- indicates to generate the pdf file with TOC (false).bDrill
- indicates to generate the pdf file with the Drill Down feature enabled (false).encoding
- the encoding of the mail subject and comments.java.lang.Exception
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
rcpt
- the recipient address.cc
- the copy to address.bcc
- the blind copy to address.subject
- the mail subject.comments
- any text string for memoire.compress
- indicates whether to use java compress utilities to compress
the mail contents.additionfiles
- the addition file attached to the mail other than
report results, if addition file is null, it means no file attached
to the mail.java.lang.Exception
void setNamedWherePortion(java.lang.String name)
name
- the where portion name in the query.void setWherePortion(java.lang.String where)
where
- the where portion in the SQl query.boolean saveWherePortion(java.lang.String strName, java.lang.String dataSourceName, java.lang.String strQueryName, java.lang.String strSQL)
strName
- the name of the where portion.dataSourceName
- the name of the data source the where portion is set.strQueryName
- the name of the query the where portion is set.strSQL
- the where portion statement.boolean saveWherePortion(java.lang.String strName, java.lang.String dataSourceName, java.lang.String strQueryName, java.util.Vector vecGroups)
strName
- the name of where portion.dataSourceName
- the name of the data source the where portion is set.strQueryName
- the name of the query the where portion is set.vecGroups
- the where portion structure.boolean saveWherePortion(java.lang.String strName, java.lang.String strSQL)
strName
- the name of the where portion.strSQL
- the where portion statement.boolean saveWherePortion(java.lang.String strName, java.util.Vector vecGroups)
strName
- the name of the where portion.vecGroups
- the where portion structure.boolean modifyWherePortion(java.lang.String strName, java.lang.String strSQL)
strName
- the name of the where portion.strSQL
- the where portion statement.boolean modifyWherePortion(java.lang.String strName, java.util.Vector vecGroups)
strName
- the name of the where portion.vecGroups
- the where portion structure.boolean deleteWherePortion(java.lang.String strName)
strName
- the name of the where portion.boolean deleteWherePortion(java.lang.String strName, java.lang.String sourceName)
strName
- the name of the where portion.java.util.Enumeration getAvailableWherePortions()
java.util.Enumeration getAvailableQueryFields()
java.lang.String getWherePortionsSQL(java.lang.String nameOfWherePortion)
nameOfWherePortion
- the name of the where portion.java.lang.String getWherePortionsSQL(java.lang.String nameOfWherePortion, java.lang.String sourceName)
nameOfWherePortion
- the name of the where portion.sourceName
- the name of the data source.boolean saveCatalog()
boolean addFileQuery(java.lang.String strName, java.io.File flPath)
strName
- the name of the file query.flPath
- the sql file.boolean addFileQuery(java.lang.String strName, java.io.File flPath, java.lang.String sourceName)
strName
- the name of the file query.flPath
- the sql file.sourceName
- the name of the data source.java.lang.String getSQL()
void modifyUserInfo(java.lang.String strUserName, java.lang.String strPassword, java.lang.String dataSourceName)
strUserName
- the user namestrPassword
- the user passworddataSourceName
- the data source namevoid setConnection(java.lang.String strURL, java.lang.String strUID, java.lang.String strPSWD, java.lang.String strJdbcDriver, boolean fetchSupportInfo)
strURL
- the URL of the database.strUID
- the user id for the JDBC driver.strPSWD
- the password for the JDBC driver.strJdbcDriver
- the JdbcDriver.fetchSupportInfo
- Sets true to get the user support information.
This method will only work when the user has set the connection object or url.void setConnection(java.sql.Connection userDbConnection, boolean fetchSupportInfo)
userDbConnection
- the JDBC Connection object created by the user.
Users should close it by themselves.fetchSupportInfo
- Sets true to get the user support information.
This method will only work when the user has set the connection object or url.void setFetchSupportInfo(boolean fetchSupportInfo)
fetchSupportInfo
- a boolean value.void setUserResultSet(java.sql.ResultSet userResultSet)
userResultSet
- the JDBC ResultSet object created by the user.
Users should release it by themselves.java.util.Vector getDetailsFields() throws java.lang.Exception
java.lang.Exception
void setUserName(java.lang.String name)
name
- the user name.int getRecordLength() throws java.lang.Exception
java.lang.Exception
java.lang.String getJoinCondition()
java.lang.String getWhereCondition()
java.util.Hashtable getRptDescs() throws java.lang.Exception
java.lang.Exception
java.util.Locale getLocale()
java.util.TimeZone getTimeZone()
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
portStr
- the port name, for example, COM1..initStr
- the initializing string of modem.iDialing
- the dialing mode (tone or pulse).iFlowControl
- the flow control mode of modem.iFlowCommand
- the flow command of modem.iClass
- the fax class.txtTimeOut
- sets how long the fax will wait for the response of destination.txtRetries
- sets how many times our application will refax to destination if busy.q_best,q_normal,q_fast
- the quality of the fax image.isAddCover
- whether to add cover before fax report.faxnum
- the fax phone.from
- the sender that will be shown in the cover.to
- the receiver.company
- the company name that will be shown in the cover.phone
- the phone number that will be shown in the coverre
- the subject.comments
- the text.urgent,review,comment,reply
- the remark of this fax that will be shown in the cover.java.lang.Exception
boolean exportToFax(ExportInfo info, java.lang.String portStr, java.lang.String initStr, int iDialing, int iFlowControl, java.lang.String flowCommand, int iClass, int txtTimeOut, int txtRetries, boolean q_best, boolean q_normal, boolean q_fast, boolean isAddCover, java.lang.String faxnum, java.lang.String from, java.lang.String to, java.lang.String company, java.lang.String phone, java.lang.String date, java.lang.String re, java.lang.String comments, boolean urgent, boolean review, boolean comment, boolean reply) throws java.lang.Exception
portStr
- the port name, for example, COM1..initStr
- the initializing string of modem.iDialing
- the dialing mode (tone or pulse)iFlowControl
- the flow control mode of modem.iFlowCommand
- the flow command of modem.iClass
- the fax class.txtTimeOut
- sets how long the fax will wait for the response of destination.txtRetries
- sets how many times our application will refax to destination if busy.q_best,q_normal,q_fast
- the quality of the fax image.isAddCover
- whether to add the cover before fax report.faxnum
- the fax phone.from
- the sender that will be shown in the cover.to
- the receiver.company
- the company name that will be shown in the cover.phone
- the phone number that will be shown in the coverre
- the subject.comments
- the text.urgent,review,comment,reply
- the remark of this fax that will be shown in the cover.java.lang.Exception