1
I am using a JS code that works very well to print:
function printdiv(divID) {
var headstr = "<html><head><title></title></head><body>";
var footstr = "</body>";
var newstr = document.all.item(divID).innerHTML;
var oldstr = document.body.innerHTML;
document.body.innerHTML = headstr + newstr + footstr;
window.print();
document.body.innerHTML = oldstr;
return false;
}
I just need to print a few titles and there will be times I’ll have to print more than one grid. So I created in CSS the "print" and the "in print" and put everything inside the DIV divID
.
What happens is that when the grid is populated with lots of data appearing scroll bar or paging it does not print all.
With the grid all populated, only if I put only the grid within this div
, it prints out all the data.
I’ve tried a lot of different ways and all this trouble happens.