472,331 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,331 software developers and data experts.

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 8567
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Yarik | last post by:
Hello, When I open an HTML document by Internet Explorer 6 and then print the document on a color inkjet printer, some of the colors are rendered...
3
by: Peter Williams | last post by:
Hi All, I want to write some javascript for a html page which does the following. Imagine that the page contains a table with 2 columns and 3...
16
by: J. B. Moreno | last post by:
I read the faq, and it mentions that IE 4 on windows requires setting a printing option to allow background colors to be printed. Things change,...
4
by: Franklin | last post by:
WITHOUT KNOWING ANYTHING ABOUT THE CURRENT COLORS, I want to swap the foreground/background colors of a link when someone hovers over it. Is this...
2
by: Steffen Loringer | last post by:
Hi group, I like to print my ASP.NET page with the internet explorer. I added a panel (with a black border and blue as background) and a button...
2
by: letsgetsilly | last post by:
I'm developing the external corporate website for my company in Visual Studio 2003 using html, css, and a user web control for the header/navigation....
1
by: Chris Dunaway | last post by:
I have a simple .asp page in which is included an IFrame that loads and Asp.Net page. The asp.net page takes and xml document and uses an xslt...
3
by: =?Utf-8?B?QnJpYW4gQ29vaw==?= | last post by:
Is there a way to force printing in black and white programatically?
1
by: JeffP | last post by:
A customer is reporting that all reports are printing with a greeny background. When previewed they have what looks like a light-grey background. ...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.