Header and Footer for Exported Word Files

  • Last update:March 24, 2025
  • Overview

    During report export,  for reports (configured with headers or footers) to be exported as Word files, you need to export the headers or footers to the Word files as well.

    iconNote:
    Page numbers for the footer cannot be exported to Word files.

    Example

    Template Setting

    Create a template and design the report as shown in the following figure.

    Header and Footer Setting

    Set a header for the template: Select the Center Section area, click the Text icon, and enter FineReport, as shown in the following figure. For details about specific settings, see Header and Footer.

    iconNote:
    You can add a mix of multiple elements for the header and footer. For example, you can place elements such as strings, images, and line breaks in the header and footer.

    Effect Display

    Save the report, and click Pagination Preview. The following figure shows the effect.

    3.png

    Word Export

    Export the Word file. In this case, you can see that the exported Word file contains a header, as shown in the following figure.

    Notes

    Extra Blank Line in the Exported Word File

    Problem

    For templates with headers or footers, each page (except the first page) has an extra blank line in the corresponding exported Word files, as shown in the following figure.

    Cause

    The distance of the header from the top (corresponding to the top margin in FineReport) in Word is set to 12.7 mm by default.

    The logic for setting the margins in FineReport and the distance of the header from the top in Word differ. Consequently, after you export the Word file, the report content may be pushed down by the header, causing the display content to be shifted downward or displayed discontinuously.

    Solution

    Choose Template > Page Setting > Page on the menu bar, and set the top margin to 12.7 mm, as shown in the following figure.

    Preview the report and export the Word file. Since the distance of the header from the top is the same as the top margin, the exported result is consistent with the previewed result.

    Extra Blank Page in Exported Word File

    Problem

    After you adjust the margin to 12.7 mm, blank pages still exist in the exported Word file.

    Cause

    This problem generally occurs when the page is stretched due to images added in the header or footer.

    Solution

    When you add the header or footer, click the Background icon and select Image instead of clicking the Image icon directly, as shown in the following figure.

    Attachment List


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

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

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

    不再提示

    7s后關閉

    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