Report Details Top of Excel Export
Report Details Top of Excel Export
Joese
Posts: 2Questions: 1Answers: 0
Hi there, So i can get the export to work no worries. However i need to have some basic meta data above the table in the export. What i need is in the first 3 cells of the page it says something like:
Report: Name Of Report
Exported: 25th Nov
Filtered By: Name
<Datatable>
I have searched the forum, but i could find how to do this simple change
Any help would be awesome, Thanks
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
You can use "title" and "messageTop" for this as described here: https://datatables.net/reference/button/excelHtml5
This will give you two lines above your table.
Those lines can be formatted as you like also dynamically depending on the user, datetime or whatever you have.
Here is an example (not exactly the same but almost): https://datatables.net/forums/discussion/comment/116630/#Comment_116630
Great, Thx