|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ReportEngine
Interface ReportEngine can do some operations with engine,
such as run and export report, set connection, etc.
| Method Summary | |
|---|---|
boolean |
addFileQuery(java.lang.String strName,
java.io.File flPath)
Add the specified file query to the current catalog. |
boolean |
addFileQuery(java.lang.String strName,
java.io.File flPath,
java.lang.String sourceName)
Add the specified file query to the current catalog. |
void |
closeLog()
close the log stream. |
void |
configMailServer(java.lang.String SMTPServerIP,
java.lang.String MyMailAddress,
int SMTPServerPort)
Configures the mail server. |
boolean |
deleteWherePortion(java.lang.String strName)
Removes the specified where portion and save the catalog. |
boolean |
deleteWherePortion(java.lang.String strName,
java.lang.String sourceName)
Removes the specified where portion and save the catalog. |
void |
exit()
When you want to quit from JReport Engine Bean, you should call this method. |
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 a HTML file. |
boolean |
exportToFax(ExportInfo info,
java.lang.String portStr,
java.lang.String initStr,
int iDialing,
int iFlowControl,
java.lang.String flowCommand,
int iClass,
int txtTimeOut,
int txtRetries,
boolean q_best,
boolean q_normal,
boolean q_fast,
boolean isAddCover,
java.lang.String faxnum,
java.lang.String from,
java.lang.String to,
java.lang.String company,
java.lang.String phone,
java.lang.String date,
java.lang.String re,
java.lang.String comments,
boolean urgent,
boolean review,
boolean comment,
boolean reply)
Exports the current report to fax. |
boolean |
exportToFax(java.lang.String portStr,
java.lang.String initStr,
int iDialing,
int iFlowControl,
java.lang.String flowCommand,
int iClass,
int txtTimeOut,
int txtRetries,
boolean q_best,
boolean q_normal,
boolean q_fast,
boolean isAddCover,
java.lang.String faxnum,
java.lang.String from,
java.lang.String to,
java.lang.String company,
java.lang.String phone,
java.lang.String date,
java.lang.String re,
java.lang.String comments,
boolean urgent,
boolean review,
boolean comment,
boolean reply)
Exports the current report to fax. |
boolean |
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 result report file(with the .rst extension)to a HTML file. |
boolean |
exportToHtml(java.lang.String rstFileName,
java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin,
java.lang.String title,
int resolution,
int overflowType,
int chartFormat)
Exports result report file(with the .rst extension)to a 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()
export 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 report result file(with the .rst extension)to a PS(PostScript) file. |
boolean |
exportToRst(java.util.Map reportInfo,
java.lang.String rstFileName,
boolean isZip)
save reports and views to a .rst file. |
boolean |
exportToRst(java.lang.String rstFileName)
save current report to a .rst file. |
boolean |
exportToRst(java.lang.String loadRstFileName,
java.lang.String rstFileName)
load a .rst file and save to another .rst file. |
boolean |
exportToRtf(ExportInfo info,
RtfParameter param)
Exports the report to RTF file. |
boolean |
exportToRtf(java.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 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 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 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 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)
Initialize exporting the current report to XML Element. |
boolean |
exportToXMLObject(java.lang.String rstFileName,
boolean isOnlyData,
java.lang.String existedSchemaFile)
Initialize exporting the specified report result to XML Element. |
java.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()
return the output file of export to rtf |
java.util.Vector |
getAllXlsFile()
return the output file of export to xls |
java.util.Vector |
getAllXMLFile()
return the output file of export to xml |
java.util.Vector |
getAvailableLocales(java.lang.String clt)
Gets all of the Locales that current report supported. |
java.util.Enumeration |
getAvailableQueryFields()
Gets the available fields of the query The available fields include: 1. |
java.util.Enumeration |
getAvailableWherePortions()
Gets the enumeration of all the where portion names in the catalog. |
java.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 destination encoding |
java.lang.String |
getDataDriver()
Gets the data driver of the report which the engine will run. |
java.util.Vector |
getDetailsFields()
Get all the fields information in the details section including fields in all subreport a field informaiton including field name and type |
java.lang.String |
getHelpPath()
Gets the help path. |
int |
getID()
Gets id of engine, the id is an unique identification of engine |
java.lang.String |
getJoinCondition()
Get join portion condition caluse in SQL statement. |
java.lang.String |
getLoadReport()
Gets the load report flag. |
java.util.Locale |
getLocale()
Gets locale |
int[] |
getPageNumbers()
Gets the page numbers of page level security. |
int |
getPageOrientation()
Gets the page orientation. |
java.util.Hashtable |
getParamDescs()
Get all objects of ParamDesc the report. |
java.lang.String |
getParamFile()
Sets the name of the parameter values file. |
java.util.Hashtable |
getParamToSubRpt()
Get the parameter name to the subreport name relationship. |
java.lang.String |
getParamValues()
Gets the parameter values of the report. |
java.lang.String |
getPrintStatus()
Get print status after printing. |
java.lang.String |
getReason()
Get the error reason after occur error. |
int |
getRecordLength()
Get the length of record |
Communicator |
getReportCommunicator()
Gets Communicator object of report |
java.lang.String |
getReportHome()
Gets the report home path where the report.ini and other JReport system files exist. |
java.lang.String |
getReportName()
Gets the name of report. |
java.util.Vector |
getReportParams(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 parameters related to the parameter specified by param 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 cach query result set of the report which the engine will run. |
java.util.Hashtable |
getRptDescs()
return current universe's report Description, key is report file name(with" .cls"), value is the description. |
java.lang.String |
getSID()
Gets security identifier of page level security. |
boolean |
getSingleThread()
Checks current engine is whether single-thread. |
java.lang.String |
getSQL()
Gets the sql statement of this report. |
java.lang.String |
getStatus()
Gets the status after an action. |
java.util.Vector |
getStyleGroupNames()
Get all style group names in template |
java.lang.String |
getTemplatePath()
Gets the template path. |
java.lang.String |
getTempPath()
Gets the temporary path. |
java.lang.Throwable |
getThrowable()
Gets the throwable error information. |
boolean |
getThrowException()
return true if the engine throws exception while program throws exception. |
java.util.TimeZone |
getTimeZone()
Gets timezone |
int |
getTotalPageNumber()
Gets the total page number of the report. |
java.lang.String |
getWhereCondition()
Get where portion conditions caluse in SQL statement. |
java.lang.String |
getWherePortionsSQL(java.lang.String nameOfWherePortion)
Gets the specified where portion. |
java.lang.String |
getWherePortionsSQL(java.lang.String nameOfWherePortion,
java.lang.String sourceName)
Gets the specified where portion. |
boolean |
hasPageSecurity()
Checks the current report security. |
boolean |
hasParameter()
check whether current report have parameters. |
boolean |
loadReport()
load 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 save the catalog. |
boolean |
modifyWherePortion(java.lang.String strName,
java.util.Vector vecGroups)
Modifies the specified where portion in the current query and save 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 special parameters. |
org.w3c.dom.Element |
publishXMLNextPage()
return next xml object when export to xml object. |
void |
runReport()
Launches to run JReport Engine Bean. |
void |
runReport(boolean genRst)
parameter genRst decide to output rst file or not, during runReport. |
void |
runReport(java.util.Vector vReportName)
run specified reports in the report set. |
boolean |
save(java.lang.String resultFileName)
save current report to result file. |
boolean |
saveCatalog()
Saves the catalog |
boolean |
saveWherePortion(java.lang.String strName,
java.lang.String strSQL)
Saves the specified where portion to the current query and save the catalog. |
boolean |
saveWherePortion(java.lang.String strName,
java.lang.String dataSourceName,
java.lang.String strQueryName,
java.lang.String strSQL)
Saves the where portion to the specified query and save the catalog. |
boolean |
saveWherePortion(java.lang.String strName,
java.lang.String dataSourceName,
java.lang.String strQueryName,
java.util.Vector vecGroups)
Save the where portion to the specified query and save the catalog. |
boolean |
saveWherePortion(java.lang.String strName,
java.util.Vector vecGroups)
Saves the specified where portion to the current query and save 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)
Export current report engine 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)
Set 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 destination encoding when having encoding converting |
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 current encoding. |
void |
setFetchSupportInfo(boolean fetchSupportInfo)
Set 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 current locale. |
void |
setLocale(java.lang.String language,
java.lang.String country)
Sets current Locale by 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()
set 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 report. |
void |
setResultFile(java.lang.String resultFile)
Specifies the name of the result file which will be generated by JReport Engine Bean. |
void |
setResultSet(java.lang.String url)
Sets the cach query result set of the report which the engine will run. |
void |
setShowInfoLevel(int level)
Enables/disables output error and debug message. |
void |
setSID(java.lang.String sid)
Sets security identifier of page level security. |
void |
setSingleThread(boolean single)
Sets the report engine to use single thread or not. |
void |
setStyleGroup(java.lang.String styleGroupName)
Set style group. |
void |
setTemplatePath(java.lang.String sTemplatePath)
Sets the template path. |
void |
setTempPath(java.lang.String sTempPath)
Sets the temporary path. |
void |
setThrowException(boolean isThrowException)
set whether throw exception while program throw exception. |
void |
setTimeZone(java.lang.String timeZone)
Sets current time zone by a string. |
void |
setTimeZone(java.util.TimeZone curTimeZone)
Sets current time zone. |
void |
setUserName(java.lang.String name)
Set user name |
void |
setUserResultSet(java.sql.ResultSet userResultSet)
Set the resultset required to run the report. |
void |
setWherePortion(java.lang.String where)
Sets the where portion in the SQl query. |
void |
stopReport()
Stop running the report. |
void |
waitForEngineFinish()
waiting until the engine process success. |
boolean |
xmlHasNextPage()
judge whether have next page when export to xml object |
| Method Detail |
|---|
int getID()
void setConvertEncoding(int fromEncoding,
int toEncoding)
fromEncoding - the original encodingtoEncoding - the destination encodingint getConvertFromEncoding()
int getConvertToEncoding()
void setPriority(int pri)
pri - the engine priorityvoid setSingleThread(boolean single)
single - true use single-thread. Otherwise use multi-thread.boolean getSingleThread()
void setStyleGroup(java.lang.String styleGroupName)
void setLocale(java.util.Locale currentLocale)
void setLocale(java.lang.String language,
java.lang.String country)
void setEncoding(java.lang.String encoding)
java.util.Vector getAvailableLocales(java.lang.String clt)
void setTimeZone(java.util.TimeZone curTimeZone)
void setTimeZone(java.lang.String timeZone)
void setClientName(java.lang.String 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 - a 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 to value pair occupies one line in the file (except that if a line ends with \, see bellow.) The name and value is separated by an equals sign '=' (if it exists), and the name is always on the left side and value on the right side.
More rules:
1. All whitespace characters around the name will be ignored, but whitespace characters around value will not be skipped.
2. This rule only applys to those lines whose line break occurs within value string. If a line ends with \, then the following line, if it exists, is treated as a continuation line. So that the value string of the current line (without the last '\'), a new line character ('\n') and the string of next line will be concatenated together. But if a line ends with "\\", "\\" will be treated as the termination character of value string and a single '\' will be appended to the value.
3. This rule only applys to name expression. If an equal sign follows "\\", this string will be treated as a part of parameter name instead of a separator character. For example, "a\\=b=c+d" will be treated as: name is "a=b", value is "c+d".
paramFile - the name of the parameter values file.
This will be ignored if the paramValues is specified.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 cach query result set of the report which the engine will run.java.lang.String getResultSet(java.lang.String url)
void setDataDriver(java.lang.String url)
url - The data driver of the report dataset.
This will set a runtime data driver for 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 url is started with 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)
then the report will be run.void setThrowException(boolean isThrowException)
isThrowException - if throw exceptionboolean getThrowException()
java.lang.Throwable getThrowable()
boolean loadReport()
throws java.lang.Exception
java.lang.Exceptionvoid runReport(boolean genRst)
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.ExceptionCommunicator getReportCommunicator()
void waitForEngineFinish()
boolean save(java.lang.String resultFileName)
throws java.lang.Exception
resultFileName - is result file name contains full path
java.lang.Exceptionint 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 false, you can call the printReport method like this:
PrinterJob printJob = PrinterJob.getPrinterJob();
bean.printReport(printJob, printJob.defaultPage(), false, false, false);bSeparateLargePage - a boolean value, if the report page size is larger
than the print paper size, and you want to separate the large report page
during printing, you should set this property to true. if the print page size
which you choose is less than the report page size, then the report will be
printed as multiple pages serially, this means we will seperate the large
page of the report automatically.
After you set it to true, for JDK1.2 or higher, the page format dialog will
be popped up. In this dialog, you can choose the page format which you want
to print with, we will use this page size for printing. For JDK1.1.x, however,
you must change the page format which you want to print with in the print
dialog(click the property button, then choose the page format).
Note: This printing mothod is not recommended, it may cause some unexpected
errors, for example, you may get an extra blank page.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 namepageNums - an int array of the page numbers.
java.io.IOExceptionCommunicator getCommunicator()
Communicator getCommunicator(boolean security)
security - indicates that if it needs security.void stopReport()
void setShowInfoLevel(int level)
level - the debug level, for example: vDebug | vErrorvoid closeLog()
when all the engine have finised 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 nameparamName, - if it is null, then return all parameters used by the
current report in a proper order and each of them are not other parameter's value.paramValue, - the new value.
Which may lead the new paramters' vector returned back, or the parameter with new drop down list valueisAll - if return all parameter collection.
Returns a Vector, each element of this Vector is jet.formula.ParamDesc
java.lang.Exception
java.util.Vector getReportParams(java.lang.String userName,
boolean bFirstLevel)
throws java.lang.Exception
userName - the user namebFirstLevel - if returns only first level parameters
Returns a Vector, each element of this Vector is jet.formula.ParamDesc
java.lang.Exception
java.util.Vector getReportParams(java.lang.String userName)
throws java.lang.Exception
userName - the user name
Returns a Vector, each element of this Vector is jet.formula.ParamDesc
java.lang.Exceptionjava.util.Hashtable getParamDescs()
java.util.Hashtable getParamToSubRpt()
boolean exportToRst(java.lang.String loadRstFileName,
java.lang.String rstFileName)
loadRstFileName - source rst file name contains full pathrstFileName - rst file name contains full path want to saved.
boolean exportToRst(java.lang.String rstFileName)
rstFileName - rst file name contains full path want to saved.
boolean exportToRst(java.util.Map reportInfo,
java.lang.String rstFileName,
boolean isZip)
rstFileName - rst file name contains full path want to saved.
boolean exportToHtml(java.lang.String rstFileName,
java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNum,
boolean bAbsolute,
int iBrowser,
boolean bincdrilldownfile,
boolean noMargin,
java.lang.String title,
int resolution,
int overflowType)
rstFileName - the result file name.htmlFileName - the HTML file name.bChartApplet - indicates whether the chart in html file is exported as an applet (false).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 the font size is absolute or relative (true)iBrowser - indicates the browser is IE or NETSCAPE. The value of
parameter int browser must be one of the IE or NETSCAPE (ReportEngineConst.IE).bincdrilldownfile - indicates to generate the drilldown html files 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 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 - indicates whether the chart in html file is exported as an applet (false).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 the font size is absolute or relative (true)iBrowser - indicates the browser is IE or NETSCAPE. The value of
parameter int browser must be one of the IE or NETSCAPE (ReportEngineConst.IE).bincdrilldownfile - indicates to generate the drilldown html files 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 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 - indicates whether the chart in html file is exported as an applet (false).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 the font size is absolute or relative (true)iBrowser - indicates the browser is IE or NETSCAPE. The value ofbincdrilldownfile - indicates the drilldown html files were included in 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 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 - indicates whether the chart in html file is exported as an applet (false).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 the font size is absolute or relative (true)iBrowser - indicates the browser is IE or NETSCAPE. The value ofbincdrilldownfile - indicates the drilldown html files were included in 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 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 - indicates whether the chart in html file is exported as an applet (false).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 the font size is absolute or relative (true)iBrowser - indicates the browser is IE or NETSCAPE. The value of
parameter int browser must be one of the IE or NETSCAPE. (ReportEngineConst.IE)bincdrilldownfile - indicates to generate the drilldown html files 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 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 - indicates whether the chart in html file is exported as an applet (false).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 the font size is absolute or relative (true)iBrowser - indicates the browser is IE or NETSCAPE. The value ofbincdrilldownfile - indicates the drilldown html files were included in 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 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 use simulated printing mode (false).isCompressImage - indicatess to generate the pdf file compress image (20).isTransparent - - indicates to generate the pdf file keep transparent gif image(false)bToc - indicates to generate the pdf file with TOC (false)bDrill - indicates to generate the pdf file with Drill Down (false)password - indicates to generate the pdf file with encryption, if dont 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 use simulated printing mode (false).isCompressImage - indicatess to generate the pdf file compress image (20).isTransparent - - indicates to generate the pdf file keep transparent gif image(false)bToc - indicates to generate the pdf file with TOC (false)bDrill - indicates to generate the pdf file with Drill Down (false)password - indicates to generate the pdf file with encryption, if dont 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 that each row of it represents each record in the report. It can be used as a text datasource to exchange data with other application (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 - remove empty lines or redundant delimiters in the exported text file (false).resolution - define the resolution by which the character be converted (-1)quoteMark - keep the quote character in standard format text (true)hasHeadFoot - the text has haeder and footer (true)forWindows - to indicate 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 - is to set whether this text file is normal text format
or standard data format
the standard data format text file is the text file that each row of it represents each record in the report. It can be used as a text datasource to exchange data with other application (false)
isRepeat - indicates whether to repeat the same contents (false).delimiter - 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 - remove empty lines or redundant delimiters in the exported text file (false).resolution - define the resolution by which the character be converted (-1)quoteMark - keep the quote character in standard format text (true)hasHeadFoot - the text has haeder and footer (true)forWindows - to indicate 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 - ,indicate to export to PS file without page margin (false).
boolean exportToPS(java.lang.String psFileName,
boolean noMargin)
psFileName - the PS file name.noMargin - ,indicate 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 - ,indicate 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 - ,indicate 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 - , specify the schema file which is based when export 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 - , specify the schema file which is based when export 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.ClassNotFoundExceptionjava.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 - , specify the schema file which is based when export 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 - , specify the schema file which is based when export 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 wordwrap the field,
the value must to be KEEPORIGIN, NOWORDWRAP or WORDWRAPALL (ReportEngineConst.KEEPORIGIN)isBiff8 - indicates whether in Excel2000 format (false)param - indicates if export shapes (ReportEngineConst.NOEXPORTSHAPE)shareLabel - whether share label no matter whether it repeat (false)
boolean exportToXls(java.lang.String xlsFileName,
int isWordWrap,
boolean isBiff8,
int param,
boolean shareLabel)
xlsFileName - the Xls file name.isWordWrap - indicates whether wordwrap the field,
the value must to be KEEPORIGIN, NOWORDWRAP or WORDWRAPALL (ReportEngineConst.KEEPORIGIN)isBiff8 - indicates whether in Excel2000 format (false)param - indicates if export shapes (ReportEngineConst.NOEXPORTSHAPE)shareLabel - whether share label no matter whether it repeat (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 addressMyMailAddress - sender's mail addressSMTPServerPort - 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 senderrcpt - the address of the receiptcc - copy to addressbcc - blind copy to addresssubject - the mail subjectcomments - any text string for memoirecompress - indicates whether use java compress utilities to compress mail contentsrptformat - available choice are : rst file mail, html mail,
html files mail, pdf file mail, plain text mail and SDF format text mailnoMargin - indicate that export file without page Margin (false)udwidth - and udheight are user defined char width and height used in plain text format (-1)isSimPrintMode - indicates to generate the pdf file use simulated print mode (false).isCompressImage - indicates to generate the pdf file compress image (20).isDataOnlyXML - indicates that the xml file has data only (false)xsdFile - the .xsd file pathhasHeadFoot - indicates that if the text file has header and footer (true)isGifTrans - indicates that if the image is trnasparent (false)bTxtCompress - indicates that if the text is compressed (false)isTable - indicates that if the html has table (false)isWordWrap - indicates whether wordwrap the field,
the value must to be KEEPORIGIN, NOWORDWRAP or WORDWRAPALL (ReportEngineConst.KEEPORIGIN)isBiff8 - indicates that 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 Drill Down (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 - receipt addresscc - copy to addressbcc - blind copy to addresssubject - mail subjectcomments - any text string for memoirecompress - indicates whether to use java compress utilities to compress
the mail contentsadditionfiles - addition file attached to the mail other than
report results, if addition file is null, it means no files attached
to the mail.
java.lang.Exceptionvoid setNamedWherePortion(java.lang.String name)
void setWherePortion(java.lang.String where)
boolean saveWherePortion(java.lang.String strName,
java.lang.String dataSourceName,
java.lang.String strQueryName,
java.lang.String strSQL)
strName, - the name of the where portiondataSourceName, - the name of the datasource the where portion is setstrQueryName, - the name of the query the where portion is setstrSQL, - the where portion statement
boolean saveWherePortion(java.lang.String strName,
java.lang.String dataSourceName,
java.lang.String strQueryName,
java.util.Vector vecGroups)
strName, - the name of where portion.dataSourceName, - the name of the datasource the where portion is set.strQueryName, - the name of the query the where portion is set.vecGroups, - the where portion structure.
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 where portion.vecGroups, - the where portion structure.
boolean modifyWherePortion(java.lang.String strName,
java.lang.String strSQL)
strName, - the name of where portion.strSQL, - the where portion statement.
boolean modifyWherePortion(java.lang.String strName,
java.util.Vector vecGroups)
strName, - the name of 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)
void setConnection(java.lang.String strURL,
java.lang.String strUID,
java.lang.String strPSWD,
java.lang.String strJdbcDriver,
boolean fetchSupportInfo)
strURL, - the URL of the database.strUID, - the user id for the JDBC driver.strPSWD, - the password for the JDBC driver.strJdbcDriver, - the JdbcDriver.fetchSupportInfo, - Set true to get the user support information.
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, - Set 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.Exceptionvoid setUserName(java.lang.String name)
name - the user name
int getRecordLength()
throws java.lang.Exception
java.lang.Exceptionjava.lang.String getJoinCondition()
java.lang.String getWhereCondition()
java.util.Hashtable getRptDescs()
throws java.lang.Exception
java.lang.Exceptionjava.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 - is the port name.Such as COM1..initStr - is the initialize string of modem.iDialing - is dialing mode(tone or pulse)iFlowControl - is flow control mode of modem.iFlowCommand - is flow command of modem.iClass - is fax class.txtTimeOut - is to set how long will fax wait for response of destination.txtRetries - is to set how many times our application will refax to destination if there is busy.q_best,q_normal,q_fast - is the quality of fax image.isAddCover - is whether add cover before fax report.faxnum - is fax phone.from - is sender would be shown in cover.to - is receiver.company - is comapny name would be shown in cover.phone - is phone number would be shown in coverre - is subject.comments - is text.urgent,review,comment,reply - is remark of this fax would be shown in cover.
java.lang.Exception
boolean exportToFax(ExportInfo info,
java.lang.String portStr,
java.lang.String initStr,
int iDialing,
int iFlowControl,
java.lang.String flowCommand,
int iClass,
int txtTimeOut,
int txtRetries,
boolean q_best,
boolean q_normal,
boolean q_fast,
boolean isAddCover,
java.lang.String faxnum,
java.lang.String from,
java.lang.String to,
java.lang.String company,
java.lang.String phone,
java.lang.String date,
java.lang.String re,
java.lang.String comments,
boolean urgent,
boolean review,
boolean comment,
boolean reply)
throws java.lang.Exception
portStr - is the port name.Such as COM1..initStr - is the initialize string of modem.iDialing - is dialing mode(tone or pulse)iFlowControl - is flow control mode of modem.iFlowCommand - is flow command of modem.iClass - is fax class.txtTimeOut - is to set how long will fax wait for response of destination.txtRetries - is to set how many times our application will refax to destination if there is busy.q_best,q_normal,q_fast - is the quality of fax image.isAddCover - is whether add cover before fax report.faxnum - is fax phone.from - is sender would be shown in cover.to - is receiver.company - is comapny name would be shown in cover.phone - is phone number would be shown in coverre - is subject.comments - is text.urgent,review,comment,reply - is remark of this fax would be shown in cover.
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||