function PrintPanel() { debugger; var panel = document.getElementById("<%=Upnl1.ClientID %>"); var printWindow = window.open(panel, '', 'height=600,width=900'); printWindow.document.write('<html><head><title>DIV Contents</title>'); printWindow.document.write('</head><body >'); printWindow.document.write(panel.innerHTML); printWindow.document.write('</body></html>'); printWindow.document.close(); setTimeout(function () { printWindow.print(); }, 1000); return false; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)