How can I add a custom header and footer to the exported data to Excel?
This can be done by customizing the Workbook that will be exported. In this case, we have to add new rows to the current rows collection.
The following example shows how to:
- Add a new row at the beginning and at the end of the workbook.
- Apply additional settings to the cells.
- Freeze the first two rows in order to have the header and the column titles to be visible when scrolling.