« Return to the main article
Hi,
I have been able to hide the action bar when printed and also the button that commands the print.
I have done this by putting a "print this page" picture on the page, surrounding it with divs..
<div id="divNoPrint1"> pic here </div>
and then having the following code in the "onClick" event:
setTimeout('document.all.tags("Applet")(0).style.display="none";', 200); setTimeout('document.all.tags("div")(0).style.display="none";', 200); setTimeout('window.print();', 200); setTimeout('document.all.tags("Applet")(0).style.display="";', 200); setTimeout('document.all.tags("div")(0).style.display="";', 200);
This hides the applet and the print button. I could have just had the print button in the action bar, but have found under a lot of circumstances that it crashes Internet Explorer.
I seem to remember that this only works in ie also.
HTH,
Paul.
Hi,
I have been able to hide the action bar when printed and also the button that commands the print.
I have done this by putting a "print this page" picture on the page, surrounding it with divs..
<div id="divNoPrint1"> pic here </div>
and then having the following code in the "onClick" event:
setTimeout('document.all.tags("Applet")(0).style.display="none";', 200); setTimeout('document.all.tags("div")(0).style.display="none";', 200); setTimeout('window.print();', 200); setTimeout('document.all.tags("Applet")(0).style.display="";', 200); setTimeout('document.all.tags("div")(0).style.display="";', 200);
This hides the applet and the print button. I could have just had the print button in the action bar, but have found under a lot of circumstances that it crashes Internet Explorer.
I seem to remember that this only works in ie also.
HTH,
Paul.