• 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

print all the frames in a page

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anyone tell me how to:
I've a page with 2 frames. On the top frame, I need a button to print the all page. I tried:
"window.print()"
"parent.window.print()"
"top.print()"
however, all of them only print the top frame. What javascript I should use to print out the whole page including these 2 frames.
Thanks a lot
[ January 22, 2002: Message edited by: Tom Chen ]
[ January 22, 2002: Message edited by: Tom Chen ]
 
Ranch Hand
Posts: 449
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Tom Chen,
As per I know the printing of frame is a property of the print option. You have to do the setting in your print option to print is as laid on the screen. Through Javascripts you can't control that feature.

Vijay
 
Tom Chen
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I've tried your method. It works. However,Is there other programming way to control that feature. Because User doesn't not accept this mannual way.
The 2nd question, how can I just print the 2nd frame of the page using javascript?
Thanks,
Tom Chen

Originally posted by Vijay Rathore:
Hi Tom Chen,
As per I know the printing of frame is a property of the print option. You have to do the setting in your print option to print is as laid on the screen. Through Javascripts you can't control that feature.

Vijay


[ January 23, 2002: Message edited by: Tom Chen ]
 
Vijay S. Rathore
Ranch Hand
Posts: 449
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am handling this issue by adding a print preview button in my frame. As soon as user clicks the button I am building another webpage with all the data in it with a button print and close on the web page or to be more precise the popup. Try this trick.
 
reply
    Bookmark Topic Watch Topic
  • New Topic