Author: pradeepBaloni | Posted on: 8/4/2010 5:04:53 AM | Views : 252

 hello i m using below code for printing datalist
<script language="javascript" type="text/javascript"> function CallPrint(strid) { var prtContent = document.getElementById(strid); var WinPrint = window.open('','','letf=0,top=0,width=100,height=500,toolbar=0,scrollbars=1,status=0,location=0'); WinPrint.document.write(prtContent.innerHTML); WinPrint.document.close(); WinPrint.focus(); WinPrint.print(); WinPrint.close(); prtContent.innerHTML=strOldOne; } </script> <div id="divPrint"> <asp:datagrid> ..... ..... ..... </asp:datagrid> </div> <asp:button ID="btnPrint" OnClientClick="javascript:CallPrint('divPrint');" Runat="server" Text="Print"/> when&nbs ...

Go to the complete details ...