|
-
January 18th, 2009, 08:27 PM
#1
problem w/ bgcolor in printing
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
Code:
<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
Last edited by PeejAvery; January 19th, 2009 at 08:35 AM.
-
January 18th, 2009, 10:42 PM
#2
Re: problem w/ bgcolor in printing
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
-
January 18th, 2009, 10:44 PM
#3
Re: problem w/ bgcolor in printing
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.
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
-
January 26th, 2009, 06:52 PM
#4
Re: problem w/ bgcolor in printing
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.
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|