Printing Background Colors

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Scott

    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?


    .ReportSummaryH eader {
    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
    }


  • Ray at

    #2
    Re: Printing Background Colors

    This would best be asked in a group about web browsers. This group is all
    about server-side programming.

    Ray at home

    "Scott" <sbailey@milesl umber.com> wrote in message
    news:#mNtcXPxDH A.2652@TK2MSFTN GP09.phx.gbl...[color=blue]
    > 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[/color]
    display[color=blue]
    > the background color.
    >
    > Does anyone know if it's possible to force background CSS or HTML colors[/color]
    to[color=blue]
    > print without having the user change the default in IE to not print
    > background colors?
    >
    >
    > .ReportSummaryH eader {
    > 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
    > }
    >
    >[/color]


    Comment

    • Scott

      #3
      Re: Printing Background Colors

      Sorry about wrong group, do you know the name of any MS forums that speak
      CSS?

      "Ray at <%=sLocation% >" <myFirstNameATl ane34dotKOMM> wrote in message
      news:uwMaG$PxDH A.3468@TK2MSFTN GP11.phx.gbl...[color=blue]
      > This would best be asked in a group about web browsers. This group is all
      > about server-side programming.
      >
      > Ray at home
      >
      > "Scott" <sbailey@milesl umber.com> wrote in message
      > news:#mNtcXPxDH A.2652@TK2MSFTN GP09.phx.gbl...[color=green]
      > > 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[/color][/color]
      CSS[color=blue][color=green]
      > > lines between table rows, but a background color of say the header[/color][/color]
      won't.[color=blue][color=green]
      > > The below style will display the borders in print preview, but won't[/color]
      > display[color=green]
      > > the background color.
      > >
      > > Does anyone know if it's possible to force background CSS or HTML colors[/color]
      > to[color=green]
      > > print without having the user change the default in IE to not print
      > > background colors?
      > >
      > >
      > > .ReportSummaryH eader {
      > > 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
      > > }
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Chris Hohmann

        #4
        Re: Printing Background Colors

        "Scott" <sbailey@milesl umber.com> wrote in message
        news:u8aQsEQxDH A.1908@TK2MSFTN GP10.phx.gbl...[color=blue]
        > Sorry about wrong group, do you know the name of any MS forums that[/color]
        speak[color=blue]
        > CSS?[/color]

        microsoft.publi c.windows.inete xplorer.ie55.pr ogramming.css
        microsoft.publi c.siteserver.cs s
        comp.infosystem s.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


        Comment

        • dlbjr

          #5
          Re: Printing Background Colors

          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


          Comment

          Working...