Click to See Complete Forum and Search --> : problem w/ bgcolor in printing


ryanbong
January 18th, 2009, 08:27 PM
im using PHP and i have this table with bgcolor. when im viewing it the bgcolor is included but when i print it using the window.print() function the bgcolor wont display

heres the part of my code where i put the bgcolor

<tr>
<td colspan="9" align="right" class="txtformat1"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="5" align="left" class="txtformat1" bgcolor="#999999">&nbsp;PRODUCTS</td>
</tr>
<tr>
<td width="11%" align="center" bgcolor="#CCCCCC" class="txtformat1 ">ITEM CODE</td>
<td width="33%" align="center" bgcolor="#CCCCCC" class="txtformat1 ">ARTICLES</td>
<td width="14%" align="center" bgcolor="#CCCCCC" class="txtformat1 ">QUANTITY</td>
<td width="22%" align="center" bgcolor="#CCCCCC" class="txtformat1 ">UNIT PRICE</td>
<td width="20%" align="center" bgcolor="#CCCCCC" class="txtformat1 ">TOTAL</td>
</tr>

i want the bgcolor=#999999 and #CCCCCC included when i print my reports

PeejAvery
January 18th, 2009, 10:42 PM
[ moved ]

PeejAvery
January 18th, 2009, 10:44 PM
The code itself is not PHP, therefore this belongs in the client-side.

However, your problem isn't the code. This is just how many browsers work. When opening the print dialog, you will have to select an option that tells the computer to print backgrounds.

PeejAvery
January 26th, 2009, 06:52 PM
Ryan, please stop posting duplicates of this thread. This is the forum in which it belongs. If you want to reply, do it in this thread.