Printing the page displayed in an inline frame.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I have an inline frame and would like to print the page displayed in that
inline frame. Is that possible ?

Thanks
Roopa
 
That is one of the problems of using Frameset / IFrames. You would need to add a Print button on to
the page that is loaded in the IFrame, that would load the page into a new window. This would allow
users to use their browser Print command.

--
==============================================
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.
==============================================
 
Thats an idea. Is there a way I can capture the name of the page which is
currently loaded in the particular frame ?
 
I don't know how you would do that, is this because you don't have access to the actual page from
within your site?

--
==============================================
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.
==============================================
 
I do have access to the pages but I was just planning put the button on a
frame which does not change. Bring up the file that is loaded currently for
printing purposes

Any idea how I can do that?
 
I think you will need to put the button on each page that loads in the IFrame. The only way I can
see do this automatically is if the page was being create dynamically, where you are passing the
file name value via script where you would then know the file name.

--
==============================================
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.
==============================================
 
Roopa said:
Hi

I have an inline frame and would like to print the page displayed in
that inline frame. Is that possible ?

Thanks
Roopa

I don't know if this differs for in-line frames, but I have a framed site
and on *one* page I call this code

function print_page()
{
if (window.print)
{ parent.index_main.focus()
top.frames['index_main'].print() }
else
alert("Select \"Print\" from the menu")
}

This will print whatever is loaded into "index_main".

I think that 'parent' and 'top' are the same in this context. Maybe I should
only use oneor the other.
 
Back
Top