This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes How to print total page including css background? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "How to print total page including css background?" Watch "How to print total page including css background?" New topic
Author

How to print total page including css background?

Simpson Kumar
Ranch Hand

Joined: Mar 19, 2008
Posts: 260
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.


Thanks,
Kumar
aditee sharma
Ranch Hand

Joined: Jul 22, 2008
Posts: 182
Try changing your browser settings to "print background colors and images".
...just a thought.
Simpson Kumar
Ranch Hand

Joined: Mar 19, 2008
Posts: 260
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

Joined: Jan 10, 2002
Posts: 56549
    
  14

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Simpson Kumar
Ranch Hand

Joined: Mar 19, 2008
Posts: 260
Now its printing the page too, this is my system's fault
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to print total page including css background?
 
Similar Threads
HTML Table "Stripes" with CSS
JSF: tomahawk dataTable rowStyleClass problem while applying alternate colors to rows
Printing Html
random background color choosing in jsp
Programmatically alter MSIE tools/internet option setting