I would like to print my table that contains a lot of columns.
The way I am doing it is like below
function PrintPlanning()
{
var data = $('#planning').html();
var mywindow = window.open();
mywindow.document.write('<html><head><title>Planning</title>');
mywindow.document.write('<link type="text/css" rel="stylesheet" href="/print.css"/>');
mywindow.document.write('</head><body>');
mywindow.document.write('<div id="planning">');
mywindow.document.write(data);
mywindow.document.write('</div>');
mywindow.document.write('</body></html>');
mywindow.print();
return true;
}
My table is like this and is very large.
<div id="planning">
<table>
...
</table>
</div>
When I launch the function, the print overview appears but my table is fit on the width page and the content becomes very small (not readable).
Is it possible to extends it horizontally on new pages? Maybe with CSS?