InsertHtml - Table Rendered Incorrectly

Please take a look at the attached HTML. Older version of Aspose.word (Version 3.3.6) produced the table correctly where as the new version is rendering the same HTML incorrectly (Both documents attached).
Thanks!


<TABLE>
    <TBODY>
        <TR>
            <TD>
                <P><B>Business Lines</B></P>
            </TD>
            <TD>
                <P><B>Net Income</B></P>
            </TD>
            <TD>
                <P> </P>
            </TD>
        </TR>
        <TR>
            <TD>
                <P> </P>
            </TD>
            <TD>
                <P><B>2003</B></P>
            </TD>
            <TD>
                <P><B>2002</B></P>
            </TD>
            <TD>
                <P><B>2001</B></P>
            </TD>
            <TD>
                <P> </P>
            </TD>
        </TR>
        <TR>
            <TD>
                <P>Dominion Generation</P>
            </TD>
            <TD>
                <P>508 </P>
            </TD>
            <TD>
                <P>29.4%</P>
            </TD>
            <TD>
                <P>561 </P>
            </TD>
            <TD>
                <P>34.4%</P>
            </TD>
            <TD>
                <P>511 </P>
            </TD>
            <TD>
                <P>36.2%</P>
            </TD>
            <TD>
                <P> </P>
            </TD>
        </TR>
        <TR>
            <TD>
                <P>Dominion Energy</P>
            </TD>
            <TD>
                <P>350 </P>
            </TD>
            <TD>
                <P>20.3%</P>
            </TD>
            <TD>
                <P>268 </P>
            </TD>
            <TD>
                <P>16.4%</P>
            </TD>
            <TD>
                <P>268 </P>
            </TD>
            <TD>
                <P>19.0%</P>
            </TD>
            <TD>
                <P> </P>
            </TD>
        </TR>
        <TR>
            <TD>
                <P>Dominion Delivery</P>
            </TD>
            <TD>
                <P>453 </P>
            </TD>
            <TD>
                <P>26.2%</P>
            </TD>
            <TD>
                <P>422 </P>
            </TD>
            <TD>
                <P>25.9%</P>
            </TD>
            <TD>
                <P>311 </P>
            </TD>
            <TD>
                <P> </P>
            </TD>
            <TD>
                <P> </P>
            </TD>
        </TR>
        <TR>
            <TD>
                <P>Dominion E&P</P>
            </TD>
            <TD>
                <P>415 </P>
            </TD>
            <TD>
                <P>24.0%</P>
            </TD>
            <TD>
                <P>380 </P>
            </TD>
            <TD>
                <P>23.3%</P>
            </TD>
            <TD>
                <P>320 </P>
            </TD>
            <TD>
                <P>22.7%</P>
            </TD>
            <TD>
                <P> </P>
            </TD>
        </TR>
        <TR>
            <TD>
                <P><B>TOTAL, before Corporate</B></P>
            </TD>
            <TD>
                <P><B>1,726 </B></P>
            </TD>
            <TD>
                <P><B>100.0%</B></P>
            </TD>
            <TD>
                <P><B>1,631 </B></P>
            </TD>
            <TD>
                <P><B>100.0%</B></P>
            </TD>
            <TD>
                <P><B>1,410 </B></P>
            </TD>
            <TD>
                <P><B>100.0%</B></P>
            </TD>
            <TD>
                <P> </P>
            </TD>
        </TR>
        <TR>
            <TD>
                <P> </P>
            </TD>
            <TD>
                <P> </P>
            </TD>
            <TD>
                <P> </P>
            </TD>
            <TD>
                <P> </P>
            </TD>
            <TD>
                <P> </P>
            </TD>
            <TD>
                <P> </P>
            </TD>
            <TD>
                <P> </P>
            </TD>
            <TD>
                <P> </P>
            </TD>
        </TR>
        <TR>
            <TD>
                <P> </P>
            </TD>
            <TD>
                <P> </P>
            </TD>
            <TD>
                <P> </P>
            </TD>
            <TD>
                <P> </P>
            </TD>
            <TD>
                <P> </P>
            </TD>
            <TD>
                <P> </P>
            </TD>
            <TD>
                <P> </P>
            </TD>
            <TD>
                <P> </P>
            </TD>
        </TR>
        <TR>
            <TD>
                <P><B>Subsidiaries</B></P>
            </TD>
            <TD>
                <P> </P>
            </TD>
            <TD>
                <P> </P>
            </TD>
            <TD>
                <P><B>Net Income</B></P>
            </TD>
            <TD>
                <P> </P>
            </TD>
        </TR>
        <TR>
            <TD>
                <P> </P>
            </TD>
            <TD>
                <P><B>2003</B></P>
            </TD>
            <TD>
                <P><B>2002</B></P>
            </TD>
            <TD>
                <P><B>2001</B></P>
            </TD>
            <TD>
                <P> </P>
            </TD>
        </TR>
        <TR>
            <TD>
                <P>CNG</P>
            </TD>
            <TD>
                <P>638 </P>
            </TD>
            <TD>
                <P>37.0%</P>
            </TD>
            <TD>
                <P>638 </P>
            </TD>
            <TD>
                <P>39.1%</P>
            </TD>
            <TD>
                <P>391 </P>
            </TD>
            <TD>
                <P>27.7%</P>
            </TD>
            <TD>
                <P> </P>
            </TD>
        </TR>
        <TR>
            <TD>
                <P>VEPCO</P>
            </TD>
            <TD>
                <P>561 </P>
            </TD>
            <TD>
                <P>32.5%</P>
            </TD>
            <TD>
                <P>773 </P>
            </TD>
            <TD>
                <P>47.4%</P>
            </TD>
            <TD>
                <P>446 </P>
            </TD>
            <TD>
                <P>31.6%</P>
            </TD>
            <TD>
                <P> </P>
            </TD>
        </TR>
        <TR>
            <TD>
                <P>Dominion Energy & Others*</P>
            </TD>
            <TD>
                <P>527 </P>
            </TD>
            <TD>
                <P>30.5%</P>
            </TD>
            <TD>
                <P>220 </P>
            </TD>
            <TD>
                <P>13.5%</P>
            </TD>
            <TD>
                <P>573 </P>
            </TD>
            <TD>
                <P>40.6%</P>
            </TD>
            <TD>
                <P> </P>
            </TD>
        </TR>
        <TR>
            <TD>
                <P><B>TOTAL, before Corporate</B></P>
            </TD>
            <TD>
                <P><B>1,726 </B></P>
            </TD>
            <TD>
                <P><B>100.0%</B></P>
            </TD>
            <TD>
                <P><B>1,631 </B></P>
            </TD>
            <TD>
                <P><B>100.0%</B></P>
            </TD>
            <TD>
                <P><B>1,410 </B></P>
            </TD>
            <TD>
                <P><B>100.0%</B></P>
            </TD>
            <TD>
                <P> </P>
            </TD>
        </TR>
        <TR>
            <TD>
                <P> </P>
            </TD>
            <TD>
                <P> </P>
            </TD>
            <TD>
                <P> </P>
            </TD>
            <TD>
                <P> </P>
            </TD>
            <TD>
                <P> </P>
            </TD>
            <TD>
                <P> </P>
            </TD>
            <TD>
                <P> </P>
            </TD>
            <TD>
                <P> </P>
            </TD>
        </TR>
        <TR>
            <TD>
                <P><I>* Dominion Energy's results approximated by ML Credit</I></P>
            </TD>
            <TD>
                <P> </P>
            </TD>
            <TD>
                <P> </P>
            </TD>
            <TD>
                <P> </P>
            </TD>
        </TR>
    </TBODY>
</TABLE>

Thanks for reporting this defect to us. I have logged it as a defect #1099.
We will try to fix this issue promptly. I will inform you when the hotfix will be available.
Best regards,

Thanks for your response.
What’s the ETA on the hotfix?!? Since the issue was already fixed in a previous hotfix, is it safe to assume it’s not something that would require much work?

Yes, I think we will be able to fix this issue soon enough. The next release is planned in 2-3 weeks. I hope we will have this problem corrected by then.

Is it possible for you to post a patch (unofficial) in this forum before the release? we need to deploy the fix on our end soon as this is a production bug for us! Thanks!

Hi,
What do you mean by the incorrect rendering? Is it the absence of table borders in the document produced by 3.7 as compared with the previous version? If so, your source table have no borders either and Word produces a borderless table which is correct. So it seems like the old version of the output was bad. As I remember, we fixed an issue related to HTML table borders some time ago.
If however borders have nothing to do with the problem, please specify the real error.

Try this HTML, InsertHtml() still generates a wrong output! (Document Attached). Aspose.words version 3.7.1.0

<table bordercolor="#000000" cellspacing="0" cellpadding="0" border="1" width="100%" ID="Table2">
    <tr>
        <td align="center" bordercolor="#000000" nowrap="true" width="20%" colspan="2">
            <font face="Verdana" font-weight="bold" size="3">
                Summary
                of Limits/Exposure ($000's)
            </font>
        </td>
    </tr>
    <tr>
        <td colspan="2" bordercolor="#000000" nowrap="true" width="100%">&nbsp;</td>
    </tr>
    <tr>
        <td colspan="2" bordercolor="#000000" nowrap="true" width="100%">
            <table align="right" bordercolor="#000000" cellspacing="0" cellpadding="0" width="100%"
                   ID="Table3">
                <tr>
                    <td bordercolor="#000000" nowrap="true" width="25">&nbsp;</td>
                    <td colspan="3" align="center" width="25"><font face="Arial" size="1">INDIVIDUAL</font></td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td width="25">
                        &nbsp;
                    </td>
                    <td align="center" border="1" width="8"><font face="Arial" size="1">Proposed Limits</font></td>
                    <td align="center" width="8"><font face="Arial" size="1">Existing Limits</font></td>
                    <td align="center" width="8"><font face="Arial" size="1">Exposure</font></td>
                    <td width="1">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td align="right"><font face="Arial" size="1">Max Tenor (Years)&nbsp;&nbsp;</font></td>
                    <td align="right"><font face="Arial" size="1">10.0</font></td>
                    <td align="right"><font face="Arial" size="1">10.0</font></td>
                    <td align="right"><font face="Arial" size="1">N/A</font></td>
                    <td></td>
                </tr>
                <tr>
                    <td align="right"><font face="Arial" size="1">CE&nbsp;&nbsp;</font></td>
                    <td align="right"><font face="Arial" size="1">N/A</font></td>
                    <td align="right"><font face="Arial" size="1">N/A</font></td>
                    <td align="right"><font face="Arial" size="1">113</font></td>
                    <td></td>
                </tr>
                <tr>
                    <td align="right"><font face="Arial" size="1">PE Up to 1 Year&nbsp;&nbsp;</font></td>
                    <td align="right"><font face="Arial" size="1">100,000</font></td>
                    <td align="right"><font face="Arial" size="1">100,000</font></td>
                    <td align="right"><font face="Arial" size="1">4,072</font></td>
                    <td></td>
                </tr>
                <tr>
                    <td align="right"><font face="Arial" size="1">PE 1 to 5 Years&nbsp;&nbsp;</font></td>
                    <td align="right"><font face="Arial" size="1">20,000</font></td>
                    <td align="right"><font face="Arial" size="1">20,000</font></td>
                    <td align="right"><font face="Arial" size="1"></font></td>
                    <td></td>
                </tr>
                <tr>
                    <td align="right"><font face="Arial" size="1">PE 5 to 10 Years&nbsp;&nbsp;</font></td>
                    <td align="right"><font face="Arial" size="1">15,000</font></td>
                    <td align="right"><font face="Arial" size="1">15,000</font></td>
                    <td align="right"><font face="Arial" size="1"></font></td>
                    <td></td>
                </tr>
                <tr>
                    <td align="right"><font face="Arial" size="1">PE 10 to 20 Years&nbsp;&nbsp;</font></td>
                    <td align="right"><font face="Arial" size="1">0</font></td>
                    <td align="right"><font face="Arial" size="1">0</font></td>
                    <td align="right"><font face="Arial" size="1"></font></td>
                    <td></td>
                </tr>
                <tr>
                    <td align="right"><font face="Arial" size="1">PE Over 20 Years&nbsp;&nbsp;</font></td>
                    <td align="right"><font face="Arial" size="1">0</font></td>
                    <td align="right"><font face="Arial" size="1">0</font></td>
                    <td align="right"><font face="Arial" size="1"></font></td>
                    <td></td>
                </tr>
                <tr>
                    <td align="right"><font face="Arial" size="1">Inventory&nbsp;&nbsp;</font></td>
                    <td align="right"><font face="Arial" size="1">100,000</font></td>
                    <td align="right"><font face="Arial" size="1">100,000</font></td>
                    <td align="right"><font face="Arial" size="1"></font></td>
                    <td></td>
                </tr>
                <tr>
                    <td align="right"><font face="Arial" size="1">CP Outstanding&nbsp;&nbsp;</font></td>
                    <td align="right"><font face="Arial" size="1">10,000</font></td>
                    <td align="right"><font face="Arial" size="1">10,000</font></td>
                    <td align="right"><font face="Arial" size="1"></font></td>
                    <td></td>
                </tr>
                <tr>
                    <td align="right">
                        <font face="Arial" size="1">
                            Fed Funds/Placements &lt; 6
                            months&nbsp;&nbsp;
                        </font>
                    </td>
                    <td align="right"><font face="Arial" size="1">0</font></td>
                    <td align="right"><font face="Arial" size="1">0</font></td>
                    <td align="right"><font face="Arial" size="1"></font></td>
                    <td></td>
                </tr>
                <tr>
                    <td align="right"><font face="Arial" size="1">Primary Loans Deposit &gt;= 6&nbsp;&nbsp;</font></td>
                    <td align="right"><font face="Arial" size="1">0</font></td>
                    <td align="right"><font face="Arial" size="1">0</font></td>
                    <td align="right"><font face="Arial" size="1"></font></td>
                    <td></td>
                </tr>
                <tr>
                    <td align="right"><font face="Arial" size="1">Asset-Based Lending&nbsp;&nbsp;</font></td>
                    <td align="right"><font face="Arial" size="1"></font></td>
                    <td align="right"><font face="Arial" size="1"></font></td>
                    <td align="right"><font face="Arial" size="1"></font></td>
                    <td></td>
                </tr>
                <tr>
                    <td align="right"><font face="Arial" size="1">Delivery/Settlement&nbsp;&nbsp;</font></td>
                    <td align="right"><font face="Arial" size="1"></font></td>
                    <td align="right"><font face="Arial" size="1"></font></td>
                    <td align="right"><font face="Arial" size="1"></font></td>
                    <td></td>
                </tr>
            </table>
        </td>
    </tr>
</table>

Looks like this going to be fixed, but an early patch is not possible. The fix will go out in the next release, hopefully in 2-3 weeks. If an earlier version of Aspose.Words worked for you fine, just use it for a little while more.

FYI, this HTML works fine with the Aspose.words version 3.5.2.0

We have fixed this issue in Aspose.Words 4.0 which was released recently. The HTML is imported correctly now.
Best regards,