printing problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
amiiiiiiir07
Forum Newbie
Posts: 1
Joined: Thu Sep 18, 2008 10:48 pm

printing problem

Post 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..
User avatar
yacahuma
Forum Regular
Posts: 870
Joined: Sun Jul 01, 2007 7:11 am

Re: printing problem

Post by yacahuma »

Post Reply