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 PatelPosted Jul 4, 2014, 7:35 AM
I just reviewed your code but i don't find call PrintPanel method in your code. Please check below code and try it.