• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Issue in printing a window with iFrame

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I have a page, which contain a scrollable iFrame in it.
When I try to print content of the page (as window.print()),then anything that has scrolled off the bottom of the iframe is not printed.
If it where a text area, I cud have used the following function to print complete content.
function printAll(){
document.getElementById("txt_area").style.overflow = "visible";
window.print();
document.getElementById("txt_area").style.overflow = "auto";
}
But this is not working in case of iFrames.

Can some body please suggest a solution to this issue ?
 
asd
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No comments ? :-(
Please tell me if the question is not clear ...
[ August 08, 2007: Message edited by: Bijukumar Kunimal Veedu ]
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey, you need to learn how to be more patient. Most of the people that post in this section of the Ranch live in the United States. So you are posting at 3:00 AM here on the east coast! I think we are asleep!

You would have to figure out the height of the content in the iframe and set the height of the iframe to that value.

Eric
 
Sheriff
Posts: 1367
18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"asd",

Please check your private messages for an important message from me.

Kind regards,
Katrina Owen
JavaRanch Bartender
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic