function PrintPanel() {
var panel = document.getElementById("printtbl");
var printWindow = window.open('', '', 'height=400,width=800');
printWindow.document.write('DIV Contents ');
printWindow.document.write('');
printWindow.document.write(panel.innerHTML);
printWindow.document.write('');
printWindow.document.close();
setTimeout(function () {
printWindow.print();
}, 500);
return false;
}
my source code is
| | |
| | |
| | |
| | |


Keyur PatelRank #1,216 · 1.5K reputationPosted Jul 4, 2014, 3:35 AM EDT
I just reviewed your code but i don't find call PrintPanel method in your code. Please check below code and try it.