HTML table cell width are not reflecting correctly in word document

Hi Team,

I’m using Aspose.Words to generate a word document with HTML table that is having different cell width, the converted word document generates a completely different output. The first cell width is much longer than the other cell, while in word document the first cell does not seems to be as longer when compared to HTML sample file. (50.4 KB)

Document doc = new Document(@"C:\Temp\TemplateV3.docx");

var engine = new ReportingEngine();
engine.BuildReport(doc, new string[] { File.ReadAllText(@"C:\Temp\sample.html")  }, new string[] { "Content" });

Could you please help to figure out what is causing this inconsistency?


@ottap Please note, Aspose.Words is designed to work with MS Word documents. HTML documents and MS Word documents object models are quite different and it is not always possible to provide 100% fidelity after conversion one format to another. In most cases Aspose.Words mimics MS Word behavior when work with HTML documents. If you convert the provided HTML to DOCX using MS Word the result looks even worse: ms.docx (15.0 KB)