Page 1 of 1

printing problem

Posted: Thu Sep 18, 2008 11:35 pm
by amiiiiiiir07
helloo...im news person for this forum..i have a problem for printing web page..
i have java sript code:

<script Language="Javascript">

Code: Select all

 
function printit(){  
if (window.print) {
   window.print();  
} else {
   var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
   WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box    WebBrowser1.outerHTML = "";  
}
}
</script>
my problem is when i click print button page can printing but the output not successful print..just print A4 siza only..plz help me..

Re: printing problem

Posted: Fri Sep 19, 2008 3:33 pm
by yacahuma