FileCorruptedException caused by HTML table rowspan attribute

I’m getting a FileCorruptedException for the attached document with the following code:

Aspose.Words.Document doc = new Aspose.Words.Document(docStream, “”, LoadFormat.Html, “”);

The attached document has been stripped down to the simplest case that reproduces the problem, which is that the rowspan attribute is set to exceed the number of rows that can be spanned. When the rowspan attribute is reduced (to 2 in this case) then the document loads without an error.

This error is reproducible with Aspose.Words for .NET version 4.4.1.0. Can I get a fix for this issue?

Hi
Thanks for your reporting this problem to us. I managed to reproduce the problem. I have logged this problem to our defect database as issue # 4369. Please expect a reply before the next hotfix (within 2-3 weeks).
Also I modified you HTML and now it works fine.

<html>
<body>
<table>
<tr>
<td>
<table>
<tr>
<td>Row 1 Col 1</td>
<td>Row 1 Col 2</td>
</tr>
<tr>
<td rowspan="3">Row 2 Col 1</td>
</tr>
<tr>
<td>Row 3 Col 1</td>
</tr>
<tr>
<td>Row 4 Col 1</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>

Best regards.

Hi
We have released a new version of Aspose.Words that contains a fix for your issue.

Issue # 4369 - “Aspose.Words.FileCorruptedException” exception occurs during opening HTML document.

The new version of Aspose.Words is available for download from here.
Best regards.