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

Free Support Forum - aspose.com

InsertHtml and p tag


I’m inserting the html:

<p align="center">text</p>

and the paragraph is not center aligned in the Word output being generated. Could you take a look and let me know if what I’m doing anything wrong. I am using Aspose.Words 5.3.



Thanks for your request. I used the following code for testing and all works fine.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.InsertHtml("<p align=\"center\">text</p>");

I use the latest version (6.0.0) for testing.

Best regards.