Recently, I found when using Crystal Report to output to Microsoft Excel (Data Only) format. The page headers are not exported in this format.
I have done some researches on the Internet and found the export of page headers to Microsoft Excel (Data Only) format is not supported.
I figured out that the only workaround to this (in my case) is to put all required page header content in report header. If they are required to be in multiple lines, we just need to create one report header for each line and put the related content in each report header. So the content will be displayed in multiple lines (rows) in the Microsoft Excel (Data Only) format.
Meanwhile, we need to make sure that the following two options are selected in Microsoft Excel (Data Only) Format Options in Crystal Report:
- Export page header and page footer
- Simplify page headers
This solution has fixed our internal reporting issue to Microsoft Excel (Date Only) format. Hope it will also benefit the others.