You are here: irt.org | About | Feedback | 4216 [ previous next ]
Feedback on:
irt.org FAQ Knowledge Base Q787
Sent by
Dave Joyce on October 14, 2002 at 23:36:54:
Worth:
Very worth reading
Comments:
I was searching all day for a way to use CSS in framesets. <p>Specifically I was trying to bring up print preview automatically into the frame that I wanted without having to use IE6's print preview drop down box to choose 'Only the selected frame'.
<p>I found sprintX the free version allowed me to specify landscape, but I still had to content with changing the selected display.
<p>I used CSS to set the frames that I didn't want to print to visible: none;
<p>Then I found this js code to resize the frameset.
<p>Here's my code workaround.
function printPre() {
parent.document.all("Nav").all("Content").cols="0,0,*";
parent.document.all("Nav").rows ="0,*";
factory.printing.Preview();
parent.document.all("Nav").all("Content").cols="100,100,*";
parent.document.all("Nav").rows ="50,*";
}
<p>The content I want to print is in the biggest frame so I changed all other frames to '0' and then called the print preview. Then I change them all back. The preview works great and the Print out automatically defaults to "Only selected frame" so the print works too.
<p>Thanks for the solution.
<p>Dave Joyce
<p>PS this is for an internal website using IE6 only. Sometimes it is good to be in a controlling environment.
Other feedback on 'irt.org FAQ Knowledge Base Q787' - show all