Free Support Forum - aspose.com

Exporting html table contains colspan didn't work properly

Hello,


I’m trying to export html to Word document but I have a problem while export table using builder.InsertHTML(htmlContent);

Here is html table I’m trying to export:
ABC
D E F
G H I

And the output as attached image. It seem that attribute “colspan” didn’t have any effect.

Can you please take a look and give me some suggestions to solve this problem?

Thank you very much,
Dzung

My colleagues has found a solution in this link: http://www.aspose.com/community/forums/thread/315714/table-cell-merge-problems-in-the-aspose-library-10.2.0.aspx


We remove doc.UpdateTableLayout(); in our code and problem was solved.

We don’t need manually call this method as cell and table widths are maintained automatically.

Hope this help for other people who have same problem with me :slight_smile:


Hi,


Thanks for your inquiry. It is nice to hear from you that you have solved your problem. Please use the latest version of Aspose.Words for .NET and let us know if you face any issue.

Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.