How to set column width in print button

How to set column width in print button

leadtbsleadtbs Posts: 4Questions: 2Answers: 0
edited June 2019 in Free community support

I'm trying to use the default print feature of datatable. When I print, some column's width naturally adjust depending on their content. I want it to have a fixed size when I print because some column becomes quite hard to read especially contact numbers.

{extend: 'print', title: 'LEAD System', orientation: 'landscape', pageSize: 'FOLIO',
exportOptions: {
    columns: [ 0, 1, 2, 3, 4, 5, 6, 7, 13 ],
},

This is my code for the print and as you can see, it is a very basic one.

Answers

This discussion has been closed.