Automatic Row Height Adjustment for Exported Word Files

  • Last update:March 22, 2025
  • Overview

    Problem

    After you export a Word file with the default setting of FineReport, fixed row heights are applied to cells. In this case, when you perform secondary editing on the exported Word file, the row height in the table will not be adjusted automatically after line breaks, as shown in the following figure.

    How to achieve automatic adjustment of row heights when performing secondary editing on an exported Word file?

    Implementation Method

    The Export at Unfixed Row Height function is added under Template > Export Attribute in FineReport 7.0.5 and later versions. allowing you to control whether the row height can be adjusted in an exported Word file.

    Example

    Open the template Details.cpt in %FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN\Primary\DetailReport.

    Select Pagination Preview, and choose Export > Word. When performing secondary editing on the exported Word file, you can see the effect shown in the above figure. The row heights of the exported table are not adjustable and remain consistent with those in the FineReport template.

    Export Attribute Setting

    Return to the template, choose Template > Export Attribute, and tick Export at Unfixed Row Height on the WordExport Attribute panel, as shown in the following figure.

    Effect Display

    PC

    Save the template, select Pagination Preview, export the Word file from the browser, and perform secondary editing on the Word file. You can see that the row height of the table will automatically change after the line break, as shown in the following figure.

    iconNote:
    The heights of rows that are not edited are inconsistent with the heights of the FineReport cells. This is because the table height can be adjusted automatically in the exported Word file according to the font size after you tick Export at Unfixed Row Height.

    Mobile Terminal

    The template cannot be previewed on mobile terminals currently.

    Template Download

    For details, you can download the template Auto Row Height Adjustment During Word Export.cpt.

    Attachment List


    Theme: Report Application
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    9s后關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy