Using a cached query result to run a report

To run a report on a cached query result, follow the steps below:

  1. Launch JReport Designer and open a report.
  2. In the Report Inspector, select the node that represents the dataset used by the report and specify its Data Driver property in the Properties panel as follows:

    jrquery:/jet.universe.resultfile.UResultFileResultSet;Full path of the cached query result

    For example, if the cached query result has been saved to C:\JReport\Designer\Cached with the file name test, the property value should be jrquery:/jet.universe.resultfile.UResultFileResultSet;C:\JReport\Designer\Cached\test

  3. Click the View tab to view the report. You will now see that the report data has been retrieved from the cached query result file.

Note: If you check the option Use cached query result in the Catalog category of the Options dialog, whenever you view a report, a dialog will prompt you to choose a cached query result to run the report.