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"> 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
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"> 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