### Viewing scheduled report results

When a scheduled task is finished, you can view the result of the scheduled report as required. To view the result, first of all you need to know the corresponding result's location. To get the location information:

1. On the JReport Console page, click My Tasks on the system toolbar, then click the Completed tab, where all the successfully scheduled tasks are recorded.
2. Locate the task in the tab and click the name of the task in the Schedule Name column.
3. In the Result Details table, the location information of the scheduled result is available in the Details column.

#### Viewing results scheduled to version

To view report results that are scheduled to version, you can choose whether to view via the JReport Console page or via URL.

##### Viewing via the JReport Console page

One way to view results that are scheduled to version on the JReport Console page is via the scheduled task records. To do this:

1. Click My Tasks on the system toolbar, then click the Completed tab.
2. In the tab, locate the right task and click the name of the task in the Schedule Name column.
3. In the Result Details table, the links to different result formats are available for viewing in the To Version row.

And another way to achieve the same purpose is via the server resource tree which to some extent varies with the archive location type specified in the Publish > To Version tab:

- If the archive location has been set to Built-in Version Folder:
  1. On the JReport Console > Resources page, browse to the row that the original report is in.
  2. Do either of the following:
     - Select the report row and click Tools > Version on the task bar of the Resources page.
     - Select the report row, right-click in the row and select Version from the shortcut menu.
     - Put the mouse pointer over the report row and click the Version button on the floating toolbar.
  3. In the Report Result Versions tab, the scheduled results of different format types are listed in the Result column. Click the format links or action buttons to view the results.
- If the archive location has been set to My Reports Folder or Public Reports Folder, which requires providing a path and a name for the scheduled result in the server resource tree:
  1. On the JReport Console > Resources page, browse to the row that the result is in.
  2. Put the mouse pointer over the result row and click the Version button on the floating toolbar (or you can use one of the other two methods shown in the above procedure to display the version table).
  3. In the Result Versions tab, the scheduled results of different format types are listed in the Result column. Click the format links or action buttons to view the results.

Tip: The unviewed version results are highlighted in bold. You can cancel the highlighting by setting the property web.version.mark_unviewed to false in the server.properties file in `<install_root>\bin`.

##### Viewing via URL

For the report results that are scheduled to version, you can also view them via URL. One important thing in the URL method is that you need to know the file name of the result that you want to view. To get this information, you can take the steps explained at the beginning of the document.

Using command jrs.view_ver_rst

See the example:

`http://localhost:8888/jrserver/SampleReports/SampleReports.cat/Employee Information.cls?jrs.cmd=jrs.view_ver_rst&
jrs.hist_file=1%5cJReport_System_User327406359%5cEmployee Information.rst&jrs.result_type=1.`

See details about the usage of the command jrs.view_ver_rst.

Using viewVersion.jsp

For example:

`http://localhost:8888/jinfonet/viewVersion.jsp?jrs.cmd=jrs.view_ver_def&jrs.rst_version=2&jrs.ver_suff=.html&
jrs.report=%2fEmployee Information.cls&type=rstfile&jrs.path=%2fEmployee Information.cls`

Notes:

- To view RSD version results using JSP, you should use dhtml.jsp instead of viewVersion.jsp. For example:

  `http://localhost:8888/dhtmljsp/dhtml.jsp?jrs.rst_version=10&jrs.report=/Banded_Link.cls&type=rstfile&jrs.path=/Banded_Link.cls`

- When viewing a scheduled page report result with cached report bursting via URL, you should add `jrs.is_pls_result=true` in the URL, for example: `http://localhost:8888/dhtmljsp/dhtml.jsp?jrs.rst_version=1&jrs.is_pls_result=true&jrs.report=/PLS.cls&type=drstfile&jrs.path=/PLS.cls`

#### Viewing results scheduled to disk

When scheduling a report to disk,

- If you choose Publish to Server Disk Path, you are required to provide a disk file path and file name with correct format type as the suffix for each report tab in the report. After scheduling succeeds, you can find the corresponding result files available at the specified location on the computer where JReport Server is installed.
- If you choose Publish to Server Resource Tree, you are required to provide a path following the server resource tree and file name with correct format type as the suffix for each report tab in the report. For example,
  - To follow the My Reports folder path, start with "/USERFOLDERPATH/admin/".

    Example: /USERFOLDERPATH/admin/report1.pdf

  - To follow the Public Reports folder, start with "/".

    Example: /report2.html.

  If the specified folder which is the parent folder of the result file has a real path, the generated result file will be saved to the real path; if the folder doesn't have a real path, the generated result will be saved to `<server_install_root>/jreports/`, which is the mapped disk path of the root node "/" in the specified path.

#### Viewing results scheduled to e-mail/printer/fax/FTP

When a report is scheduled to e-mail, printer, fax, or FTP, you can view the scheduled result if the specified address or location is available to you.