TableTools export to PDF not respecting hidden columns

TableTools export to PDF not respecting hidden columns

dmiserdmiser Posts: 6Questions: 0Answers: 0
edited August 2012 in General
This link shows a simple table with one hidden column:
http://www.distribucon.com/datatable

Press the PDF button in table tools, and note the output. The Id column is printed and overwritten in the first column and the header row is also mangling a title.

Replies

  • allanallan Posts: 63,089Questions: 1Answers: 10,387 Site admin
    You need to use mColumns to specify that you only want visible columns: http://datatables.net/extras/tabletools/button_options#mColumns

    Allan
  • dwbiz05dwbiz05 Posts: 7Questions: 0Answers: 0
    I have the same problem, except I WANT the hidden column to show in the pdf.

    I have used mColumns to notate which columns I want in the pdf, but the ones that are hidden by tabletools are "over-written" when exported to pdf.

    mColumns works fine with CSV when it comes to exporting hidden columns, but not the pdf.

    Dave
  • UserTomUserTom Posts: 1Questions: 0Answers: 0
    I also have the same problem that "dwbiz05" has explained. Is there any solution ? I can't get one. Thanks in advance.

    And thank you very much "allan" for this really helpful plugin.
This discussion has been closed.