Free Support Forum - aspose.com

Nested tables not positioned correctly when converting an HTML document to a Workbook

Hi Support Team,

Aspose Cells for Java version: 21.5.5

When creating a workbook by passing an HTML document to the constructor, any nested tables within <td> tags of an outer table are not positioned correctly.

When opening the HTML file directly into Excel, positioning and layout are correct.

Workbook workbook = new Workbook("test.html");
workbook.save("test.xlsx");

Attached is a zip file containing the following:

  1. test.html file
  2. Resulting text.xlsx file
  3. Image of HTML file rendered in a browser
  4. Image of HTML file when opened directly in Excel
  5. Contents of generated output.

nested_tables.zip (110.4 KB)

Any advice would be appreciated!

@mclark,
We have logged the issue as “CELLSJAVA-43488” in our database for investigations. Once we will have some news for you, we will update you in this topic.