Hi all,
I've got a gridview control on an asp web page which I format dynamically using VB to assign Red/Amber/Green based on the values in each cell of the grid.
On rendering, this creates a nicely formatted table with HTML tags assigning colours to each cell.
e.g.
etc etc...
However, on pressing "print" or "print preview", all these HTML style tags are ignored and I get a plain table with no colouring or font formats. I'm finding this quite odd as all the other style tags on the page are treated as normal.
Can anyone advise me on how to keep the formatting intact for printing?
Many thanks!
I've got a gridview control on an asp web page which I format dynamically using VB to assign Red/Amber/Green based on the values in each cell of the grid.
On rendering, this creates a nicely formatted table with HTML tags assigning colours to each cell.
e.g.
VB.NET:
...</tr><tr style="background-color:White;font-weight:bold;">
<td>MyRowTitle</td><td style="color:Black;background-color:DarkOrange;font-size:9pt;">51.7</td><td style="color:Black;background-color:DarkOrange;font-size:9pt;">68.6</td></tr>...
etc etc...
However, on pressing "print" or "print preview", all these HTML style tags are ignored and I get a plain table with no colouring or font formats. I'm finding this quite odd as all the other style tags on the page are treated as normal.
Can anyone advise me on how to keep the formatting intact for printing?
Many thanks!