wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes How print selelcted portion of jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How print selelcted portion of jsp page" Watch "How print selelcted portion of jsp page" New topic
Author

How print selelcted portion of jsp page

kavan desai
Ranch Hand

Joined: Jan 16, 2005
Posts: 32
Hi All
I want to take a print out of my jsp page but if i use java script's window.print() function it will print whole jsp page but i want to take print of some selectd portion .. can any body sugess how can i do that??

And please tell when should i ask java script related questions.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60822
    
  65

Moved to the HTML/Javascript forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You need to look into CSS with print media. You can search google and find tutorials on implementing it. Basicallyyou have two style sheets oon the page. The print media only shows up when the page is printed so you can hide the elements you do not want shown.

Eric
kavan desai
Ranch Hand

Joined: Jan 16, 2005
Posts: 32
Thanks Eric,
For reply . But i don't understand "You need to look into CSS with print media" ? can explain me in more detail or can you give some link for that ?

Thanks,
kavan
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Originally posted by kavan desai:
Thanks Eric,
For reply . But i don't understand "You need to look into CSS with print media" ? can explain me in more detail or can you give some link for that ?

Thanks,
kavan

Here it is
http://www.meyerweb.com/eric/articles/webrev/200001.html
http://www.alistapart.com/stories/goingtoprint/
and http://www.google.com/search?sourceid=navclient&ie=UTF-8&rls=GGLG,GGLG:2005-22,GGLG:en&q=css+print+media


Spritle Software Blogs
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How print selelcted portion of jsp page
 
Similar Threads
How print selelcted portion of jsp page
Reports in JSP
how to print jsp page in another window
Path of jsp files.
How print selelcted portion of jsp page