Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    Unfortunately, I’m not that familiar with the internals and specific features of the DataTables TableTools JS code, so this is maybe something that you would need to ask in the DataTables forums at https://www.datatables.net/forums/

    One option (maybe even independent from the TableTools add-on) could be to use some CSS code to hide unwanted columns when printing, e.g. with “Custom CSS” like

    @media print {
      .tablepress-id-123 .column-3,
      .tablepress-id-123 .column-4 {
        display: none;
      }
    }

    For the PDF function, make sure that you are not blicking browser plugins like Flash. That might be required here.

    Regards,
    Tobias

    Thread Starter albert0346

    (@albert0346)

    Thanks Tobias!

    This worked like a charm!! For the PDF trouble I got some information from the Internet and now it works also.

    The only thing with the PDF button I’d like to resolve is this: Would it be possible that the links in the table fields are still be active in the PDF file? Right now they are displayed as text only. But this is probably a thing for the DataTables forum, right?

    Albert

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Albert,

    very nice! Great to hear that the first two issues could be fixed! ??

    About the new question: I don’t think that’s possible, because links in a web page are different from those in PDF file, but the guys in the DataTables forums might know a solution.

    Best wishes,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Print only specific columns and problem with PDF’ is closed to new replies.