when i click print button my data print in paper size as 5*4 how to set width and height i am using java script for width and height to display dialog i am written code is correct? anyone provide example for this page resize to print in printer kindly help me function PrintPanel() { var panel = document.getElementById("<%=pnlContents.ClientID %>"); var printWindow = window.open('', '', 'height=600,width=800'); 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(); printWindow.resizeTo(500,400); printWindow.focus(); printwindow.window.close(); }, 500); return false; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)