Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing all contents of a frame with scrollbars on multiple pages.

Status
Not open for further replies.

adchin

Programmer
May 5, 2004
3
US
Hi we have an application which has frames with scrollbars.
Our users need to be able to print all the contents of the frame on click of the print button.
Our problem is if the contents of the page do not fit on one page the remaining contents do not get printed. we are using IE 6.0. Is there anything we could do in our code to print all contents?

our code is
frame.focus
frame.print()


Someone from Javascript forum suggested that this could be done using stylesheet any ideas?
 
Yes - set up a print style sheet. You'd have your normal CSS on the page, and afterwards, something like this:

Code:
<link rel="stylesheet" href="print.css" type="text/css" media="print">

The file "print.css" would contain your CSS for styling the printed version of the page.

Hope this helps,
Dan



[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Sorry I am not good at stylesheets.
How would the css in print.css be so that it prints on multiple pages any example?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top