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 total page including css background?

 
Simpson Kumar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In my JSP, I put the print icon and used event to get the total page print. But instead of printing total page including CSS image and background color, its just printing text only and also prints "print icon", and also in my page we are displaying the rows with alternate colors to identify the user easily, but when we printed the page, the colors in the rows are not displaying.

Why the colors and images from css and background color is not displaying with our html print. Is there any other way to print the page with all??

Could some one please suggest me about this issues.
 
aditee sharma
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try changing your browser settings to "print background colors and images".
...just a thought.
 
Simpson Kumar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Sharma,

thanks for you reply,

I already changed my browser setting and I can see the images and colors on printed page, but my question is, after I returned back to my main page, how to print the main page? please read the question once again and give me feasible solution.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please take the time to choose the correct forum for your posts. This forum is for questions on JSP.

For more information, please read this.

This post has been moved to a more appropriate forum.
 
Simpson Kumar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now its printing the page too, this is my system's fault
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic