473,434 Members | 1,355 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Print scrollable content in Frame.

Hullo,
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.

regards.
-abhishek.

Aug 11 '05 #1
1 2232
-abhishek:

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,
e.g.:

<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...

Julie

Aug 11 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Matt Kruse | last post by:
This is a typical layout, but I have specific requirements. I'm trying to figure out a) if it's possible to meet the requirements and b) if so, how. +---------------+ | header |...
25
by: Michael Schuerig | last post by:
I'm trying to do something seemingly very simple, but it's brought me close to crushing my head on the keyboard. All I want is a table where the head row is fixed and the body columns below are...
2
by: Balamurali C | last post by:
Hi All I'm having one problem, since im debuging this last one week I'm not able to do. Problem: In my webage I have two Frames(top & bottom) in the top frame I'm displaying some...
1
by: success_ny | last post by:
I cannot seem to find the answer to this rather simple question. Pardon me if it looks illogial or silly. Can I create a frame in the same page without referring to other html files? I.e., I...
8
by: makunag | last post by:
Didn't get answer with google and in my regular forum. Came across this site and posting here. Your help will be highly appreciated ! Our application have frames - MainNav, TaskNave and Content....
2
by: John Kotuby | last post by:
Hi all, Again running into problems converting existing ASP to ASP.NET 2 in VB. I am simply trying to print a portion of the HTML displayed on-screen and not the entire document. Specifically I...
3
by: Dan | last post by:
Hi, This may be the wrong place to ask this question, but here goes anyway. I have a RIA that I developed so that there is a scrollable div in the bottom right portion of the screen that always...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.