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

Free Support Forum - aspose.com

InsertHtml and p tag

Hello,

I’m inserting the html:

text



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!

Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

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("

text

");

doc.Save(@"Test022\out.doc");

I use the latest version (6.0.0) for testing.

Best regards.