Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Printing Background Colors

Reply
Thread Tools

Printing Background Colors

 
 
Scott
Guest
Posts: n/a
 
      12-17-2003
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
}


 
Reply With Quote
 
 
 
 
Ray at
Guest
Posts: n/a
 
      12-18-2003
This would best be asked in a group about web browsers. This group is all
about server-side programming.

Ray at home

"Scott" <> wrote in message
news:#...
> 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
> }
>
>



 
Reply With Quote
 
 
 
 
Scott
Guest
Posts: n/a
 
      12-18-2003
Sorry about wrong group, do you know the name of any MS forums that speak
CSS?

"Ray at <%=sLocation%>" <myFirstNameATlane34dotKOMM> wrote in message
news:uwMaG$...
> This would best be asked in a group about web browsers. This group is all
> about server-side programming.
>
> Ray at home
>
> "Scott" <> wrote in message
> news:#...
> > 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
> > }
> >
> >

>
>



 
Reply With Quote
 
Chris Hohmann
Guest
Posts: n/a
 
      12-18-2003
"Scott" <> wrote in message
news:...
> 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


 
Reply With Quote
 
dlbjr
Guest
Posts: n/a
 
      12-18-2003
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there any library that can convert RGB colors to ANSI colors? ZelluX Python 3 12-01-2008 11:08 AM
TreeNode colors come from anchor colors AAaron123 ASP .Net 1 08-07-2008 07:56 PM
Keeping background colors in printing dalei HTML 3 08-12-2005 09:20 PM
background colors dimestore Firefox 10 07-16-2005 09:35 AM
Background colors Steve IA Firefox 0 11-06-2004 07:44 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57