For the web savvy developers… I’d like to add a Print Button which prints JUST the document (not the whole frameset) and none of the action buttons… I’ve read several posts on similar subjects however none of them seem to have a solution…
Any ideas?
C>
Subject: “Print” button on the web…
the JavaScript window.print(); will print the content of the frame from which it is called. That is, put a button on the form you want to print.
As far as hiding elements:
Give each button you want to hide, including the “Print” button, a name on the HTML property tab. Then, you would write JavaScript for the print button something like:
document.forms[0].button1.style.visibility=‘hidden’;
document.forms[0].button2.style.visibility=‘hidden’;
document.forms[0].button3.style.visibility=‘hidden’;
window.print();
document.forms[0].button1.style.visibility=‘visible’;
document.forms[0].button2.style.visibility=‘visible’;
document.forms[0].button3.style.visibility=‘visible’;
Subject: RE: “Print” button on the web…
Thanks - got my “print” button working by this method, and got my “close” button working using @Command([CLoseWindow]) but don’t seem to be able to get Edit or Save working… can you recommend a reference (designer help is limited) that can put me in the right direction for some basic javascript?
C>
Subject: RE: “Print” button on the web…
I can’t recommend a beginning JavaScript reference, because I don’t have one. I do like the following as an all-around general web development tutorial and reference, including HTML, JavaScript and CSS: Dymanic HTML by Danny Goodman. O’reilly ISBN 1-56592-494-0. It’s about 1,100 pages long, but most of that is reference material. The tutorial section is the first 160 pages.