<script> function printform() { var printContent = document.getElementById('<%= PNL_PrxStatus.ClientID %>'); var btn = printContent.getElementsByTagName("input"); var windowUrl = 'about:blank'; var uniqueName = new Date(); var windowName = 'Print' + uniqueName.getTime(); var printWindow = window.open(windowUrl, windowName, 'left=0,top=0,width=0,height=0'); printContent.setAttribute("Position", "absolute"); printContent.setAttribute("Top", "1291px"); printContent.setAttribute("Left", "1341px"); btn[0].style.display = 'none'; printWindow.document.write(printContent.innerHTML); printWindow.document.close(); printWindow.focus(); printWindow.print(); printWindow.close(); } </script>
Page.ClientScript.RegisterStartupScript(Page.GetType(), "mykey", "printform();", true);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)