Export to Excel

Export to Excel

arnoparnop Posts: 5Questions: 1Answers: 0

When i add buttons to my datatables (or use the examples on datatables.net) using firefox and select open to open the generated xlsx Firefox gives it the .zip extension. How can i avoid this behaviour?

This question has accepted answers - jump to:

Answers

  • allanallan Posts: 63,075Questions: 1Answers: 10,384 Site admin

    Can you link to the page showing the issue please? Also, what version of Firefox and on what platform?

    Allan

  • arnoparnop Posts: 5Questions: 1Answers: 0

    Just use the basic example (https://datatables.net/extensions/buttons/examples/initialisation/simple.html). When you click the excel button Firefox shows the open to open or save. With open it says this is: winzip file instead of excel file. When saving it it uses xlsx but on open it uses zip as an extension.

    Firefox 42 on windows 7

  • allanallan Posts: 63,075Questions: 1Answers: 10,384 Site admin
    Answer ✓

    Thanks! Fix committed.

    It will be in the next release and the nighties are rebuilding at the moment.

    Allan

  • arnoparnop Posts: 5Questions: 1Answers: 0

    Thanks. That was a really fast response and fix.

  • arnoparnop Posts: 5Questions: 1Answers: 0

    Sorry to have to say this fix gave another issue it now creates a .xslx.xls file and excel give a warning about the file type. For xlsx u should use: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

  • allanallan Posts: 63,075Questions: 1Answers: 10,384 Site admin
    edited November 2015 Answer ✓

    Embarrassing! Fixed and the nightly rebuilding again.

    Thanks!
    Allan

  • arnoparnop Posts: 5Questions: 1Answers: 0

    thanks!

This discussion has been closed.