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.

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.

Effect Display
Save the report, and click Pagination Preview. The following figure shows the effect.
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.