Customize excel export
Customize excel export
har94
Posts: 5Questions: 1Answers: 0
Hi,
Great tool, I want to export an excel like attached copy.
is it possible in datatables?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Yes, but you'd need to use the
customize
callback of theexcelHtml5
button type to modify the XML of the XLSX file to match that. There isn't a simple easy to use API for modifying the created spreadsheet.Allan
This is what I had written. But I can't able to set height and width of the row.
The hight aspect is beyond my knowledge of the XLSX format that I'm afraid. This is how Buttons sets the width of columns in the file. You'd need to override that
col
elements that Buttons has created.Allan
Thanks you allan
Hello,
I know this has been solved, but I am curious as to how you were able to change the font size in your Excel file. From your picture "Daily Branch Report" is a larger size than 11. Can you show your code where you edited the XML to do that? I would appreciate it.
Joe
This is where Buttons defines the size. You could change that in the code, or using the
customize
callback.Allan