Hide the action bar when printing

The problem here is that each refresh or redirection is another hit on the server. To get around this, we use this code:

We have an action bar using the Java applet and wished to hide the bar when printing. Our original solution was to either refresh or re-open the form, setting hide-when formulas to prevent the action bar from displaying. We then either refresh or redirect back to the original URL. The problem here is that each refresh or redirection is another hit on the server. To get around this, we use the following code: document.all.tags("Applet")(0).style.display="none";...

window.print(); document.all.tags("Applet")(0).style.display="";

For IE 5.5, there is a bug in the browser that prevents the window.print from functioning. We have a work around for this that involves using the JS 'setTimeout' function:

setTimeout('document.all.tags("Applet")(0).style.display="none";', 200);
setTimeout('window.print();', 200);
setTimeout('document.all.tags("Applet")(0).style.display="";', 200);

This was first published in April 2002

Dig deeper on Domino Resources - Part 6

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchWinIT

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchEnterpriseLinux

SearchVirtualDataCentre.co.UK

Close