Hi,
Here is the javascript code to print all the data on the page:
scriptSTART language="javascript" type="text/javascript"
function printdoc()
{
var div=document.getElementById("DivPrint");
//to hide the undesired DIV from print page.
div.style.display='none';
window.print();
return true;
}
/scriptEND
asp:button id="btnPrint" runat="server" width="90px" text="Print" onclientclick="printdoc();"
No comments:
Post a Comment