We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Html to Word not respecting inline css


I have the example html:



When I convert to Word via Builder.InsertHtml, it ends up being a black bar and a red bar underneath it that span the whole width of the page and no rounded corners.

Would love to know what I am doing wrong and what I can do to fix it. Thank you in advance!

Hi Andrew,

Thanks for your inquiry. Please note that Aspose.Words mimics the same behavior as MS Word does. If you load the same html in MS Word and convert it to Doc/Docx, you will get the same output.

Please let us know if you have any more queries.