Overview
Application Scenario
After you select the file format of the to-be-exported report, the file content is generated in the server memory based on the report content and is directly pushed to the client through Servlet.
The following table describes the supported export formats on the browser.
Format | Description |
---|---|
Allows you to export a template as a PDF file. | |
Excel | Allows you to export a report as an Excel file. Export formats: Pagination Export, Unaltered Export, and Page to Sheet Export. Some tags in HTML cannot be exported. Only pure colors in the cell background can be exported. For details, see Excel Export. |
Word | Allows you to export a report as a Word file. Floating elements cannot be exported. A report including multiple sheets (with different settings in each sheet) cannot be exported. |
Image | Allows you to export a report as an Image file. Image formats: JPG, PNG, GIF, and BMP. You are not advised to export a report as a GIF file because the GIF file requires a large amount of memory. |
Function Description
You can preview a template and click Export on the toolbar to export the template as a file in multiple formats, as shown in the following figure.

Example
This document introduces how to export a report through the example of exporting GettingStartedEN.cpt as a PDF file.
Template Opening
Open the report in the path %FR_HOME%\webroot\WEB-INF\reportlets\GettingStartedEN.cpt.
Export Button Setting
Choose Template > Web Attribute > Pagination Preview, set Following Settings to Set for This Template Separately, and double-click Export. You can see that the Export button is added on the toolbar, as shown in the following figure.

Browser Export
Click Pagination Preview, select a parameter, and click Query, as shown in the following figure.

Click Export on the report toolbar and select PDF from the drop-down list. An animation displaying the export process pops up. After the uploading is finished, the PDF file is exported successfully, as shown in the following figure.