excelHtml5 button not showing, but csvHtml5 is showing and create a csv file

excelHtml5 button not showing, but csvHtml5 is showing and create a csv file

fleirafleira Posts: 3Questions: 1Answers: 0

Hi people,

I´ve include an excelHtml5 button export in my code, but this button isn´t show. If a change de button to csvHtml5, it shows ok.

When I change the button to excel only (using flash) it shows ok.

debbuger test link: http://debug.datatables.net/ahacob

Thanks

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,812Questions: 1Answers: 10,516 Site admin

    Have you included JSZip on your page? The excelHtml5 button type depends on JSZip.

    Allan

  • fleirafleira Posts: 3Questions: 1Answers: 0

    Hi Allan,

    yes, i´ve included de JSZip and a list above. Could you check it´s ok please?

    scripts/DataTables/css/jquery.dataTables.css
    scripts/DataTables/buttons/css/buttons.dataTables.min.css
    scripts/jquery.js
    scripts/jquery-ui-1.10.4.custom.min.js
    scripts/jquery.mask.min.js
    scripts/DataTables/js/jquery.dataTables.min.js
    scripts/DataTables/buttons/js/dataTables.buttons.min.js
    scripts/DataTables/buttons/js/buttons.html5.min.js
    scripts/DataTables/buttons/js/buttons.flash.min.js
    scripts/DataTables/JSZip/dist/jszip.min.js
    scripts/DataTables/JSZip/vendor/FileSaver.js

    thanks

  • allanallan Posts: 63,812Questions: 1Answers: 10,516 Site admin
    Answer ✓

    Could you try including JSZip before The Buttons files please.

    If that doesn't help I would need a link to the page showing the issue.

    Allan

  • fleirafleira Posts: 3Questions: 1Answers: 0

    Hi Allan,

    Bingo it works! I´ve included JSZip before buttons files as you comment.

    Thanks a lot!

  • allanallan Posts: 63,812Questions: 1Answers: 10,516 Site admin

    That is something that should be resolved with the Buttons 1.2.2 release. My guess is that you are using 1.2.0 or 1.2.1.

    Allan

This discussion has been closed.