DataTables (1.10.16) export to pdf tool bar button is not working in IE 11 running in IE 10 mode.

DataTables (1.10.16) export to pdf tool bar button is not working in IE 11 running in IE 10 mode.

Ram.BRam.B Posts: 9Questions: 2Answers: 0

The export to pdf button in datatable is not working for me in IE 11 running in IE 10 mode. If I run in Edge mode using developer tools, it works fine. I am using Buttons plugin 1.4.2. My setup info is here - https://debug.datatables.net/uporoc

I get InvalidStateError in datatables.js. I cannot change IE to run in Edge mode as its controlled by master page. Are there any workarounds?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    I don't believe that pdfmake (which does the PDF export) actually supports IE10. It shouldn't be resulting in an error though - it should simply not show the PDF button.

    Allan

  • Ram.BRam.B Posts: 9Questions: 2Answers: 0
    edited November 2017

    Allan,

    Thanks for the quick response. I am using pdfmake-0.1.32. I have another page that manually creates a report as pdf using pdfmake and that works fine in IE 10.

    pdfmake - Supported Browsers:
    https://github.com/bpampuch/pdfmake/issues/800

    Thanks!

  • Ram.BRam.B Posts: 9Questions: 2Answers: 0

    https://datatables.net/extensions/buttons/examples/initialisation/export.html - Here export to pdf does not work in IE 10 mode.

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    Thanks. I'll try it out in IE10 tomorrow and let you know how I get on.

    Allan

  • Ram.BRam.B Posts: 9Questions: 2Answers: 0

    Alan,

    Any luck?

    Thanks!

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Answer ✓

    Yes! Sorry for the delay in replying. I've committed the fix and I'll tag and release an updated Buttons tomorrow.

    Allan

  • Ram.BRam.B Posts: 9Questions: 2Answers: 0

    The latest release fixed it. Thank you! I have one comment: The flash pdf export button animation doesn't seem to stop after the pdf is generated in all browsers.

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    Yup sorry. Two steps forwards, one back. That issue was reported and resolved here. I'll do a 1.5.1 release with the fix shortly.

    Allan

This discussion has been closed.