I have several files with datatable, some with 3 columns and others with six columns.
How can I make the columns fit the page width, depending on the columns I have to print?
This thread should help, it's asking the same thing.
That's not what I'm looking for. What I need is that if my table has 2 columns, or if I have 3 or 4 columns, they cover the entire page, regardless of the width assigned in the table structure.
I don't believe that the pdfmake library (which we use to create the pdf) has that ability I'm afraid. This is their "documentation" for the table - click the "Tables" link at the top. There is no mention of have a table 100% width of the page regardless of the content.
Sorry, the fix would need to be there, not in DataTables / Buttons.
It looks like you're new here. If you want to get involved, click one of these buttons!
DataTables designed and created by SpryMedia Ltd.
SpryMedia Ltd is registered in Scotland, company no. SC456502.