datatable print not working chrome 61 version

datatable print not working chrome 61 version

SriRishithaSriRishitha Posts: 42Questions: 4Answers: 0

datatable print not working chrome 61 version it working 60 version

This question has accepted answers - jump to:

Answers

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

    This example appears to work okay for me in Chrome 61.0.03163.100 / Mac.

    Allan

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

    when we click on print for first time it is working perfectly but second time it is not working.
    when come from print tab to our table url and go to print tab it is working other wise it is not working(means tab chaning) in windows

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

    When you say not working, do you mean the automatic print dialogue? That appears to be happening for me as well - the table is shown ready to print, but the dialogue isn't shown.

    That very much looks like a Chrome error to me.

    It might be worth trying to set the timeout to be 2000 and see if that helps, but I doubt it since it is already high.

    Allan

  • SriRishithaSriRishitha Posts: 42Questions: 4Answers: 0

    it is not working for me, when i am using buttons.print.js instead of buttons.print.min.js column names also not printing

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

    when we comment on settimeout in button.print.js it is working.
    but table border not coming.
    and how to comment settimeout button.print.min.js ?

  • allanallan Posts: 63,461Questions: 1Answers: 10,466 Site admin
    Answer ✓

    You'd need to recompile the minification. Closure Compiler is what I normally use, although you could pass it through UglifyJS or whatever else you want.

    Allan

  • jvcunhajvcunha Posts: 81Questions: 10Answers: 1
    Answer ✓

    Try this solution: found this thread

  • bigracefan18bigracefan18 Posts: 15Questions: 2Answers: 0

    I've got the same problem, even on the example page. The print dialog only shows up on the first attempt. If I try a second time, I need to click off that tab and click back for it to work.

  • CodingEmCodingEm Posts: 2Questions: 1Answers: 0

    I also have the same issue in that in Chrome the print dialog only appears once. jvcunha's solution works for Chrome but with IE I get spurious html tags in the printout.

This discussion has been closed.