This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to print specific report section

 
Thanikachalam Jayaprakash
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I need to print a particular section of my jsp report. If I use
window.print(), the entire webpage is getting printed which I dont want. Please give your kind suggestions

Thanks,
Prakash
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Search google for CSS print media.

Eric
 
Thanikachalam Jayaprakash
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Eric,
Thanks for your suggestion. I just got a doubt with it. I want to hide the images and menu only during printing. How to achieve that? Pls give me your suggestion.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
CSS Print Media allows you to do that.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic