Inserting HTML table without border behaves differently in Word 2003 and Word 2007

Hi,

I am using Aspose.words for java 3.2.0. When I try to insert HTML table without border at bookmark position, it is working fine in Word 2007 but in Word 2003 the left and right borders are shown.

I have tested with the below code:

doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
String html = "Table With Border " +
"<table border=\"1\">" +
" <tr><td>Column1</td><td>Column2</td></tr>" +
"</table>" +
"Table Without Border" +
"<table border=\"0\">" +
" <tr><td>Column1</td><td>Column2</td></tr>" +
"</table>";
builder.insertHtml(html);
doc.save("C:\\Temp\\out.doc", SaveFormat.DOC);  

When I open out.doc in Word 2007 the second table is without border but with Word 2003 it shows borders.

Attached the out.doc for your reference.

Thanks,
Nalini

Hi

Thanks for your request. Please try hiding Gridlines (menu Table -> Show Gridlines in Office 2003). In Office 2003 and 2007 invisible borders are shown little bit differently, and when you turn off Show Gridlines you should see the table without any borders.
Best regards,