Print content iframe

A

averbunt

I use iframes at some pages. When it has much content (more than one page) it
and i want to print it, it only shows one page. Everything else isn't printed
because the focus of IE is on the page with the iframe. Is it possible to use
a media "print" .css that only prints the page to which the iframe refers?

example:
<body>
<iframe name="test" title="test" scrolling="yes" border="0" frameborder="0"
src="contentpage.htm">

I only want to print the whole contentpage.htm without the constraint of the
iframe test in which it is displayed.
 
T

Thomas A. Rowe

You would have to print the page in the IFrame separately since it not part of the current page.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
A

averbunt

That would be fine if I can make that possible through a .css refered to by a
media="print". How do I make it possible only to print the page loaded into
the iframe?
 
T

Thomas A. Rowe

You add the .css file and a print link to the page that loads in the IFrame.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
A

averbunt

I don't want to include a print-link or button to every content-page. That's
why i use a different media screen and print .css. I want people to use the
printing of IE or an other browser with 100% of the frame contentpage.
 
T

Thomas A. Rowe

The problem is that pages loaded in an IFrame are not part of the current page open in the browser,
so in order to have print focus, the use must click on a link in the page that is open in the IFrame
to print that page or the user must be able to force the page out of the IFrame, to a full browser
window.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
A

averbunt

Is it possible to make a script or something to include in the print .css
that changes the printfocus automatically as you describe?
 
T

Thomas A. Rowe

To learn more about IFrames, see:
http://www.cs.tut.fi/~jkorpela/html/iframe.html

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top