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

Free Support Forum - aspose.com

Write formatted html into the word document

Hi,

I am using Aspose.Words for .NET. I am trying to write the formatted html into the word document, But if we open the word document the alignment is different from the html.

Please find the attachment of html file and the created word document.
Hi there,

Thanks for your inquiry. In case you are using an older version of Aspose.Words, I would suggest you please upgrade to the latest version (v14.2.0) from here and let us know how it goes on your side.

Please note that Aspose.Words mimics the same behavior as MS Word does. If you convert your HTML to Word document by using MS Word, you will get the same output.

Moreover, upon processing HTML, some features of HTML might be lost. You can find a list of limitations upon HTML exporting/importing here:
http://www.aspose.com/docs/display/wordsnet/Load+in+the+HTML+%28.HTML%2C+.XHTML%2C+.MHTML%29+Format
http://www.aspose.com/docs/display/wordsnet/Save+in+the+HTML+%28.HTML%2C+.XHTML%2C+.MHTML%29+Format