|
||||||||||
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.
The caller must call the close()
method after calling
open()
or open(String reportFile)
method to release the resources allocated for the object.
Constructor Summary | |
---|---|
Report(Program parent,
java.lang.String report)
|
Method Summary | |
---|---|
void |
close()
close the Report opened by one of the open calls. |
java.io.InputStream |
export(ReportExportFormat format)
Export the report to the given format. |
java.util.Set<java.lang.String> |
getParameterNames()
get a list of parameter names for the report |
java.util.Set<ReportParameter> |
getParameters()
get a list of parameters for the report |
com.crystaldecisions.sdk.occa.report.reportsource.IReportSource |
getPreviewToken()
get a token that can be used by the previewer. |
java.lang.String |
getReportFile()
get the default report definition file for the report |
java.lang.String |
getReportName()
get the report's name |
static boolean |
isAuthorizedForReport(Program program,
java.lang.String report)
checks that the user is permitted to run the report |
void |
open()
Open the default report. |
void |
open(java.lang.String reportFile)
Open the specified report. |
boolean |
print(java.lang.String printType,
java.lang.String printFolder)
Deprecated. |
void |
setParam(java.lang.String name,
java.lang.String value)
Deprecated. |
void |
setParametersToDefaults()
Set all report parameters (including those in subreports) to their default values. |
void |
setParameterValue(java.lang.String name,
java.lang.String value)
set the given parameter value. |
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)
Method Detail |
---|
public java.lang.String getReportName()
public java.lang.String getReportFile()
public java.util.Set<ReportParameter> getParameters()
public java.util.Set<java.lang.String> getParameterNames()
public void open()
close()
.
public void open(java.lang.String reportFile)
close()
reportFile
- the specified report file in the forms of
SECTION[reportFileName], SECTION[reportFilePathName],
reportFileName, or reportFilePathName, but not SECTION.public void close()
open
calls. If
you have called getPreviewToken()
then although the document is
closed from this end you must ensure that the viewer also disposes of its
own connection to the document.
public static boolean isAuthorizedForReport(Program program, java.lang.String report)
public java.io.InputStream export(ReportExportFormat format)
@Deprecated public boolean print(java.lang.String printType, java.lang.String printFolder)
printType
- printFolder
-
public com.crystaldecisions.sdk.occa.report.reportsource.IReportSource getPreviewToken()
public void setParameterValue(java.lang.String name, java.lang.String value)
@Deprecated public void setParam(java.lang.String name, java.lang.String value)
Deprecated. Use setParameterValue(java.lang.String, java.lang.String)
instead
public void setParametersToDefaults()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |