I'm having an issue when I export my html page to Word, I can't get rid of the borders on a table element.
<table cellspacing="0" cellpadding="0">
<tr>
<td class="title">Analyst</td>
<td>
<asp:Label ID="lblAnalyst" runat="server" CssClass="data" />
</td>
<td class="title">Borrower</td>
<td>
<asp:Label ID="lblBorrower" runat="server" />
</td>
</tr>
</table>
I set the content type to Word
Response.ContentType = "application/vnd.ms-word";
Response.AddHeader("content-disposition", String.Concat("attachment;filename=", fileName));
No matter what I do, I still get the borders around the entire table and around each cell.
I've tried setting the borders attribute on the table to 0, using inline styles and including a style in a section but nothing works. I've even tried all 3 of these together.
Any ideas? This is destined for Word 2003.
Thanks.