469,923 Members | 1,785 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,923 developers. It's quick & easy.

Printing Background Colors

There is a setting in IE for "Print background colors and images."

I've noticed that without checking this option, a web page will print CSS
lines between table rows, but a background color of say the header won't.
The below style will display the borders in print preview, but won't display
the background color.

Does anyone know if it's possible to force background CSS or HTML colors to
print without having the user change the default in IE to not print
background colors?
.ReportSummaryHeader {
font-family:verdana,arial,sans-serif;
font-size:10px;
font-weight:bold;
float: none;
color:#ffffff;
border-top: #cccccc 1px solid;
border-bottom: #cccccc 1px solid;
background-color:#8caae7;
padding:3px
}
Jul 19 '05 #1
4 8387
This would best be asked in a group about web browsers. This group is all
about server-side programming.

Ray at home

"Scott" <sb*****@mileslumber.com> wrote in message
news:#m**************@TK2MSFTNGP09.phx.gbl...
There is a setting in IE for "Print background colors and images."

I've noticed that without checking this option, a web page will print CSS
lines between table rows, but a background color of say the header won't.
The below style will display the borders in print preview, but won't display the background color.

Does anyone know if it's possible to force background CSS or HTML colors to print without having the user change the default in IE to not print
background colors?
.ReportSummaryHeader {
font-family:verdana,arial,sans-serif;
font-size:10px;
font-weight:bold;
float: none;
color:#ffffff;
border-top: #cccccc 1px solid;
border-bottom: #cccccc 1px solid;
background-color:#8caae7;
padding:3px
}

Jul 19 '05 #2
Sorry about wrong group, do you know the name of any MS forums that speak
CSS?

"Ray at <%=sLocation%>" <myFirstNameATlane34dotKOMM> wrote in message
news:uw**************@TK2MSFTNGP11.phx.gbl...
This would best be asked in a group about web browsers. This group is all
about server-side programming.

Ray at home

"Scott" <sb*****@mileslumber.com> wrote in message
news:#m**************@TK2MSFTNGP09.phx.gbl...
There is a setting in IE for "Print background colors and images."

I've noticed that without checking this option, a web page will print CSS lines between table rows, but a background color of say the header won't. The below style will display the borders in print preview, but won't

display
the background color.

Does anyone know if it's possible to force background CSS or HTML colors

to
print without having the user change the default in IE to not print
background colors?
.ReportSummaryHeader {
font-family:verdana,arial,sans-serif;
font-size:10px;
font-weight:bold;
float: none;
color:#ffffff;
border-top: #cccccc 1px solid;
border-bottom: #cccccc 1px solid;
background-color:#8caae7;
padding:3px
}


Jul 19 '05 #3
"Scott" <sb*****@mileslumber.com> wrote in message
news:u8**************@TK2MSFTNGP10.phx.gbl...
Sorry about wrong group, do you know the name of any MS forums that speak CSS?


microsoft.public.windows.inetexplorer.ie55.program ming.css
microsoft.public.siteserver.css
comp.infosystems.www.authoring.stylesheets
netscape.public.dev.css

The last two(2) are not MS forums but may still be a valuable resource.

HTH
-Chris Hohmann
Jul 19 '05 #4
This option is turned off by default.
You cannot enforce background colors to print with CSS.
In an intranet environment, you can enforce this setting and the page
parameter settings in the registry with a login script.

-dlbjr

Discerning resolutions for the alms
Jul 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

16 posts views Thread by J. B. Moreno | last post: by
2 posts views Thread by Steffen Loringer | last post: by
1 post views Thread by Chris Dunaway | last post: by
3 posts views Thread by =?Utf-8?B?QnJpYW4gQ29vaw==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.