eva/3 Application BuilderDeveloping Additional eva/3 ComponentsUser CommandsExamples for Tasks of an CommandExamples for report commands 

Preview report

Calling the class method previewReport(String name, boolean showPrintItems) of the ReportManager preview the report in a Frame. The parameter name is the project relative path of the report file. The parameter "showPrintItems" determines whether the print Item is enabled.

Example:

try
{
    ReportManager.previewReport(
        "reports/test.report", false);
} catch (IOException e) {
    e.printStackTrace();
}