Row borders lost during html to word conversion


I have used following code to convert html file to docx file

String innerHTML = propsDiv.InnerHtml;
MemoryStream htmlStream = new MemoryStream(Encoding.UTF8.GetBytes(innerHTML));
Document reqDoc = new Document(htmlStream);

my html file contains table. each row in table in has border set inline using style attribute
tableRow.png (19.0 KB)

Problem here is converted table in docx file does not have the border.
i.e borders on each row is missing after converting from html to word.

I am using Aspose.Words 19.2.0 version.

Can anyone provide me help on this.


Please ZIP and upload your input HTML file and Aspose.Words generated document (DOCX file) showing the undesired behavior here for testing. We will then investigate the issue on our end and provide you more information.

Hi hafeez,

Thanks for the reply. Issue was with my code. I fixed it and it is working fine now


It is great that you were able to find what you were looking for. Please let us know any time you have any further queries.