<script language="javascript"> function printme() { var PrintWebBrowser = '<OBJECT ID="iPrint" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>'; document.body.insertAdjacentHTML('beforeEnd', PrintWebBrowser ); iPrint.ExecWB(7,2); iPrint.outerHTML = ""; } </script>
<html> <head> <title></title> </head> <body> <table width="533" border="1" cellpadding="0" cellspacing="0"> <tr> <td>Click the button to print me</td> </tr> </table> <br> <input name="btnPrint" type="button" id="btnPrint" value="Print" onClick="JavaScript:this.style.display='none';printme();"> </body> </html>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)