Thank you for writing.
From your code snippet, I see that you are using the old ExportToExcelML
class. Please note that we also have the GridViewSpreadExport
class which is natively exporting to the .xlsx format thanks to the DPL libraries
. The spread processing engine in the libraries is more powerful so I strongly recommend that you switch to using the spread export: http://docs.telerik.com/devtools/winforms/gridview/exporting-data/spread-export
Using the GridViewSpreadExport
class you would be able to create headers and footers according to the example demonstrated here: http://docs.telerik.com/devtools/winforms/gridview/exporting-data/how-to/add-
Still, in case you need to stick to the old exporting engine you can create headers and footers by handling the ExcelTableCreated
I hope this helps. Should you have further questions please do not hesitate to write back.