|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sage.accpac.sm.Report
@NotThreadSafe public class Report
Provides facilities for generating reports.
Constructor Summary | |
---|---|
Report(Program parent,
java.lang.String report)
Constructor |
Method Summary | |
---|---|
java.io.InputStream |
export(ReportExportFormat format)
Export the report to the given format. |
java.util.Map<java.lang.String,ReportParameter> |
getParameters()
Get a map of parameters for the report. |
com.crystaldecisions.sdk.occa.report.reportsource.IReportSource |
getPreviewToken()
Get a token that can be used by the crystal viewer. |
java.lang.String |
getReportFile()
Get the report definition file for the report, which may include path |
java.util.Locale |
getReportLocale()
Get the locale to be set for the crystal report |
java.lang.String |
getReportName()
Get the report's name |
void |
setParameterValue(java.lang.String name,
java.lang.String value)
Set individual parameter's value. |
void |
setReportFile(java.lang.String reportFile)
Set the report definition file for the report |
void |
setReportLocale(java.util.Locale reportLocale)
Set the locale for the report. |
void |
setReportName(java.lang.String reportName)
Setter for report name. |
void |
setSelectionFormula(java.lang.String value)
Set the record selection formula for the main report, which could be null |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Report(Program parent, java.lang.String report)
parent
- the parent Program
under which the report will be
createdreport
- the name of the report (i.e., the SECTION in the xxRpt.ini file)Method Detail |
---|
public java.lang.String getReportName()
public void setReportName(java.lang.String reportName)
reportName
- report namepublic java.util.Map<java.lang.String,ReportParameter> getParameters()
ReportParameter
in upper case, and the values are no-null.
ReportParameter
in upper case.public void setParameterValue(java.lang.String name, java.lang.String value)
No value will be set if the parameter does not exist in the report or is one of the private parameter names used by the system itself
name
- the name of the parameter. Name is case-insensitivevalue
- the value of the parameterpublic java.lang.String getReportFile()
public void setReportFile(java.lang.String reportFile)
No reportFile will be set if the specified reportFile is invalid
reportFile
- the specified report file in the formats of reportFileName, or
reportFilePathName, SECTION[reportFileName],
SECTION[reportFilePathName], but not SECTION[].public void setSelectionFormula(java.lang.String value)
value
- the given value of the record selection formulapublic java.util.Locale getReportLocale()
public void setReportLocale(java.util.Locale reportLocale)
reportLocale
- the specified locale to be set on report object.public java.io.InputStream export(ReportExportFormat format)
format
- the given ReportExportFormat
InputStream
public com.crystaldecisions.sdk.occa.report.reportsource.IReportSource getPreviewToken()
Note: make sure to dispose the IReportSource
returned by this
method after crystal viewer has done with it
IReportSource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |