with out closing the datatable print window, remaining functionality not working.

with out closing the datatable print window, remaining functionality not working.

SriRishithaSriRishitha Posts: 42Questions: 4Answers: 0

with out closing the datatable print window, when i click on export to pdf or excel it not working

Replies

  • SriRishithaSriRishitha Posts: 42Questions: 4Answers: 0

    discussion closed

  • allanallan Posts: 63,468Questions: 1Answers: 10,466 Site admin

    Did you resolve the issue?

    Allan

  • SriRishithaSriRishitha Posts: 42Questions: 4Answers: 0

    No, i set autoprint true the problem is resolved but it is not showing the print preview.

  • allanallan Posts: 63,468Questions: 1Answers: 10,466 Site admin

    Does that happen for you in this example? What browser and platform are you using?

    Allan

  • SriRishithaSriRishitha Posts: 42Questions: 4Answers: 0
    edited October 2017

    browser chrome (61) , i am using in mvc(.net)
    when i click on export to pdf or excel it is not working

  • allanallan Posts: 63,468Questions: 1Answers: 10,466 Site admin

    In the example I linked to? Or in your local test case?

    Allan

  • SriRishithaSriRishitha Posts: 42Questions: 4Answers: 0

    https://datatables.net/extensions/buttons/examples/print/simple.html

    in this example no export option you will try an example with print and export.

  • SriRishithaSriRishitha Posts: 42Questions: 4Answers: 0
    edited October 2017

    https://datatables.net/extensions/buttons/examples/initialisation/export

    i checked this example with out closing the print widow click on pdf or excel button it is not downloading the file(pdf/excel). when i close on print window it will downloding immediately.

  • allanallan Posts: 63,468Questions: 1Answers: 10,466 Site admin

    Thanks for the extra guidance on how to recreate the issue.

    Yes, I can see that behaviour as well. Frankly I had no idea how to address that - I suspect it is related to Chrome specifically. Firefox doesn't appear to have that issue.

    Allan

  • jvcunhajvcunha Posts: 81Questions: 10Answers: 1

    Hi Allan,
        I'm having this same problem with Chrome (Version 61.0.3163.100 (Official Version) 64 bit). It opens new tab but does not display the print preview, even setting autoPrint: true
        Firefox, Safari, Edge and IE are ok apparently.
        Did you find out anything?
        Thank you very much

  • allanallan Posts: 63,468Questions: 1Answers: 10,466 Site admin

    No - it looks very much like an error in Chrome 61. I haven't had a chance to create a simple test case and submit it as a bug report yet.

    Allan

This discussion has been closed.