Following is the code for printing Div ,HTML or Table to printer using C# in Asp.net < script type ="text/javascript" language ="javascript"> function print() { var printFriendly = document.getElementById( "div1" ) var printWin = window.open( "about:blank" , "Voucher" , "menubar=no;status=no;toolbar=no;" ); printWin.document.write( "<html><head><title>Voucher Report</title></head><body><h1>Agent Wise Report</h1>" + printFriendly.innerHTML + "</body></html>" ); printWin.document.close(); printWin.window.print(); printWin.close(); } </ script > add this script lines in your header section of given page. < div id ="div1"> < table ...
C#, VB.NET, SQL Server ,ASP.NET and Crystal Report and Net for Beginner.