BackPrevious Page Next PageNext

Exporting Report Results

You can export report results to the following file formats:

Customizing the page properties for each result type

Before exporting a report, you can customize the page properties for each result type as follows:

  1. Click File > Page Setup. The Page Setup dialog appears.
  2. Switch to the Export tab.

    Page Setup dialog - Export tab

  3. By default, the properties defined for the report page in the General tab of the dialog will be applied to the exported result of all export formats. To define the page properties for each exported result, select a format from the Export To drop-down list, uncheck the Auto option and then define the properties as you want. Repeat this to define the properties for all formats.
  4. Click OK to accept the settings. The page properties specified for any export format will also be applied when advanced running and scheduling to run the report in this format on JReport Server.

When you uncheck the Auto option for an export format and click OK in the Page Setup dialog, a corresponding export page setting object will be added to the report structure tree in the Report Inspector. You can edit the export page properties there too. When you check the Auto option for this export format and click OK in the dialog again, its export page setting object will be removed automatically from the report structure tree.

Customizing the layout precision

You can customize the layout precision that will be applied when exporting reports in JReport Designer. However for page reports, the customized precision can take effect only in report tabs whose Precision Sensitive property is set to true.

  1. Click File > Options.
  2. In the Options dialog, select Export to in the Category box.
  3. Click the Layout Precision button to open the Advanced Export Settings dialog.

    Advanced Export Settings dialog

  4. Select Customize for each format.

    By default, Optimize for speed over visual effect is selected, which means JReport will decide the precision level which is oriented towards speed more than visualization.

  5. Click the System Default Settings button, then in the Precision Settings dialog, edit the precision level for each format and click OK.

    Precision Settings dialog

    JReport provides two precision levels: high and low. High precision provides better layout but slower efficiency while low precision brings higher performance but maybe poorer visual effect. If low precision can give reports well looks, it is reasonable to apply low precision for at the same time faster performance is guaranteed. By default when exporting a report to formats such as PDF, RTF, Excel, Fax or PostScript, the text will be exported with high precision. Thus the report result layouts of these formats are different from the other formats such as HTML, JReport Result, Applet, XML, and Text.

  6. In the Advanced Export Settings dialog, check the checkbox for the required formats to apply the defined precision level and click OK. For formats that are not checked, JReport will decide their precision.
  7. Click OK in the Options dialog to apply the settings.

Note: You can export the report data in either design or view mode. However, if you modify the report after opening it, it is recommended to use view mode to export the report data. To do this, click the View tab, and then click the Refresh Data button on the toolbar. The data will then be re-fetched from the database. After which you can export the report data to the required format.

BackPrevious Page Next PageNext