If you know the default format for viewing reports and this format is what you expect, use direct running. If you would like a different view format or to customize some other information such as parameter values, the running priority, how to save the result, the expiration time, and so on, use advanced running.
Direct running reports is to use the default format setting to view the report result. For page reports (for example, .cls) the default format is Page Report and they will run in Page Report Studio. For web reports (.wls) they will be opened in Web Report Studio by default.
If the reports are created on JReport Server, the default format is controlled by the Default Format for Viewing Report option in the Profile > Customize Server Preferences > General tab. When this option is set to Page Report or Applet, web reports will run in Web Report Studio by default.
If the reports are created using JReport Designer, the default format is controlled by the Default Format for Viewing Report property in the Report Inspector. If this property is set to <Server Setting>, the viewing format will be determined by the above setting on server. For page reports this property is available to each report tab in the reports, while for web reports it is available to each report.
Since a page report can contain multiple report tabs and these report tabs may have different default format settings, for example, report tab 1 is Page Report, tab 2 HTML and tab 3 Excel. In this case, there will be different direct running results according to which report tab is the last-time focused tab in the page report when the page report is saved at report design time. If it is report tab 1, all the tabs in the page report will be opened in Page Report Studio. If it is report tab 2 or 3, only tab 2 or 3 will be displayed in the specified format, and this applies to all the other formats except Page Report.
To directly run a report, on the JReport Console > Resources page, browse to the report, then do one of the following:
Then, if the report contains parameters, the Enter Parameter Values dialog will be displayed. Specify the parameter values according to your requirements.
When running a page report in Page Report Studio, the report processing page will appear, on which you can choose to cancel the running of the report, or to make the report run in background mode. Click Cancel on this page if you decide to cancel, Background if you want the report to run in background mode, or just wait for processing to complete. If you cancel the report from running, you can choose whether to cancel the running query used by the report in the database at the same time by configuring the JdbcDriversConfig.properties file. For details, refer to Canceling running query.
Notes:
When you run a report in Page Report Studio, if the report contains a large amount of data, you need to wait several minutes before the report result is displayed, and during this period, you have to remain on the report processing page, or choose to cancel the run. Now JReport enables you to switch running page reports to background mode.
To make a report running in Page Report Studio to run in background mode, on the report processing page, click the Background button.
You can also specify to run page reports automatically in background mode after a specified time period by setting preferences. To do this:
Reports running in background mode are listed in the Background Tasks table of the My Tasks page, which shows detailed running information of the reports, such as report path and name, catalog path and name, running format, time when the task is started/completed, and so on. Also, you can control the status of the reports running in background mode according to your requirements. For example, you can choose to delete, stop, or restart tasks (for details, see Managing tasks in the task tables).
When a report completes running in background, you can open it from the Background Tasks table, and once the report is opened, the task will automatically be removed from the table.