469,356 Members | 2,016 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,356 developers. It's quick & easy.

Print scrollable content in Frame.

I tried the print method provided by javascript to print the frame in
current focus. Only the visible content is printed, any hidden content
in the current frame[say, on a different resolution or where the
browser introduces a scroll-bar] does not appear in the printout.

If you know some possible work-around, please do let me know.


Aug 11 '05 #1
1 2150

I use two different style sheets, one with the scroll bars and one
without, and load them with the media attribute set to print or screen,

<link media=screen href="pdd-web.css" type=text/css rel=stylesheet>
<link media=print href="pdd-print.css" type=text/css rel=stylesheet>

This also allows you to use fonts in point sizes instead of pixels,
which in my experience will print more consistently than pixels.

You can get pretty complex with this - an example is
http://www.untours.com/prop.asp?SID=3048 - if you print preview it,
you'll see that all of the navigation is hidden, the printed page is
formatted more like a brochure with full size images, the data that is
in tabbed box prints in list format, etc.

Hope this helps...


Aug 11 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

25 posts views Thread by Michael Schuerig | last post: by
2 posts views Thread by Balamurali C | last post: by
1 post views Thread by success_ny | last post: by
2 posts views Thread by John Kotuby | last post: by
3 posts views Thread by Dan | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.