3

I have a really perplexing issue here. I have a table that is built dynamically (probably an unimportant fact here, but just so you know). On the webpage, I have text being set as particular colors based on logic criteria. On the page, it looks great. When going to print preview (and actually printing), the colors are very different.

In my code, the colors are: Red - FF0000 Orange - FF8300 Yellow - FFFF00

The image below shows the page and then the printing colors on the left and right, respectively. Note that I don't care about the background color. You can clearly tell that the colors are far more distinct on the page then they are in print preview.. and the yellow isnt even yellow at all.

enter image description here

Any thoughts about why this is happening??

user13500
  • 3,817
  • 2
  • 26
  • 33
dah97765
  • 679
  • 1
  • 13
  • 29
  • 1
    Are you sure there's not another stylesheet loaded for print? Do you have the same result on other browsers? – Skwal Mar 25 '14 at 21:01
  • What browser? Does this show OK in preview? http://jsfiddle.net/kimiliini/P5Cwk/show/ – user13500 Mar 26 '14 at 01:56
  • Definitely not another stylesheet loaded for print. Using IE8 - thats the only browser I can use on this machine so I can't test with others unfortunately. – dah97765 Mar 28 '14 at 18:59
  • @user13500 , I have the same problem with that table – dah97765 Mar 28 '14 at 19:02

1 Answers1

2

You need to enable "Print Background Colors and Images".

This, for some reason, also fixes the foreground colors. When unchecked the print is in economics mode.


IE8 Print Preview       


Before and after shots:

Web Render: Print Before: Print After:


Sample page used:

<table border=1>
   ...

With CSS:

th {
    font-family: Arial;
    color:#244169;
    background:#d8ebf9;
}
td {
    font: bold 10pt Courier;
    background: #f1f5f8;    
}

.red {
    color: #ff0000;
}
.orange {
    color: #ff8300;
}
.yellow {
    color: #ffff00;
}

Internet options:

Note that under Tools -> Internet Options -> Advanced scroll down to Printing, there is an option for Print background colors and images. This does not affect "Print Preview" or print. At lest not here. (Only tested on Windows XP as that is the only place where I have IE8.)

However setting it in Print Preview, sets it permanently. Again; at least here. It affects both direct print and print preview.

Advanced Internet Options IE8, Print

user13500
  • 3,817
  • 2
  • 26
  • 33
  • Funny, I just noticed this myself this morning. I saw it earlier but as you implied - its not obvious based on the setting name that this would affect foreground colors...nor does it really explain why a color would change so drastically (yellow to green). Either way, thank you for the detailed answer. – dah97765 Mar 31 '14 at 14:03
  • @dah97765: Yes, it is far from obvious :) Seems to be some attempt to even out the use of colors across the bases. Unchecked it definitively uses more black ink. – user13500 Mar 31 '14 at 14:20