472,147 Members | 1,265 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,147 software developers and data experts.

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 2197

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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.