Successfully!

Error!

Browser Export

  • Last update:  2024-02-29
  • 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

    PDF

    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.

     1.png

    iconNote:
    If parameters exist in the template, you need to query data before clicking Export.

    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.

    iconNote:
    This button is added to the toolbar by default. You do not need to add the button separately. If you delete the button manually, you can refer to the above steps to add it again.

     2.png

    Browser Export

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

    iconNote:
    The report export result is consistent with the actual effect in the preview mode. Therefore, you need to set parameter values and query data before export.

    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.

    3.png

    Attachment List


    Theme: Report Application
    Already the First
    Already the Last
    • Helpful
    • Not helpful
    • Only read

    Doc Feedback