No excel button
No excel button
LuiKang
Posts: 6Questions: 1Answers: 0
Hello!
DataTables is great, I love to use it.
The only thing left to use in my site is the Export to Excel button.
I try to use it, I think I set it up well - but no button shows up.
I've uploaded my code to a free site (sometimes its time to load in, sometimes its fast):
http://85.255.0.161/datatable_excel_test.php
Can you please help me what do I do wrong? I bet its a simple mistake what I don't see...
LuiKang
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
(link edited, now it works)
You have a table inside another table. That table has no id attribute.
Try giving the second table a id attribute like this:
<table id="example" width="99%" align="right" class="t_data" border="0" cellspacing="0" cellpadding="0">
I'm not able to load the page I'm afraid.
Allan
Now its reachable.
Updated the server address (moved to an other site) - now it must be reachable.
Please look at it, F12Magic's answer not answered.
Sorry, missed the third table with id.
As far as I can see you're missing a javascript library you need to load in the head tag.
buttons.html5.js and/or buttons.flash.js is also required according to the excel reference page
Ty F12Magic, I put the missing line there, but still no excel button.
Can you load JSZip and pdfmake before Buttons please. I believe that should resolve the issue.
Allan
EXCELlent!
Thank you allan, that worked!