excelHtml5 is not working.
excelHtml5 is not working.
wangho
Posts: 6Questions: 2Answers: 0
version 1.10.19, bootstrap 4. browser: chrome, edge
I was applied as 'buttons: ['excelHtml5']'. but it is not working.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Please describe in more detail what is happening or not happening. Do you get any alert messages or errors in the browser's console?
Have you loaded the Buttons JS and CSS files? You can verify you have all the files using the Download Builder.
Do these examples work for you?
https://datatables.net/extensions/buttons/examples/styling/bootstrap4.html
https://datatables.net/extensions/buttons/examples/html5/simple.html
In order for us to help please post a link to your page or a test case replicating the issue.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
@kthorngren Sorry, I didn't have enough explanation.
It was not happening.
I was download full option.
(Because I am working in Internal network. Can't connect internet.)
- Step1: Bootstrap 4
- Step2: DataTables. I use another bootstrap library. That's downloaded from official bootstrap site. version 4.3.1
- Extentions: Selected All
And I attach link as below.
http://live.datatables.net/wogeloge/1/edit?html,css,js,output
Actually, This article is my first. Please understand me. Thank you for your kindness.
Thanks for the example. There are two issues. One is you are not telling Datatables to display the buttons as described here:
https://datatables.net/extensions/buttons/#Displaying-the-buttons
I used the
dom
option in this updated example:http://live.datatables.net/kazozite/1/edit
The example is loading two versions of jQuery which won't work. You added
jquery-3.3.1.slim.min.js
which causes this error due to missing functions:Uncaught TypeError: f.parseXML is not a function
I commented that and left the default
jquery-1.11.3.min.js
and the Excel button now works. You can use the full jQuery 3.3.1 if you want.Kevin
Thank you very much. @kthorngren It's work now