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

Free Support Forum - aspose.com

InsertHtml with useBuilderFormatting set to true seems to always put it in Italics


I am trying to use DocumentBuilder to insert html and having a few problems with the fomatting.

If I set the useBuilderFormatting it seems to use all the formatting on the merge doc except for the fact that it always puts it in Italic. If I set it to false it always puts it in “Times New Roman” no matter what formatting is on the merge doc.

Is there some work around for this?


Here is a portion of the code so you know what I am talking about.

var builder = new DocumentBuilder(args.Document);
builder.InsertHtml(args.FieldValue.ToString(), true);
Hi Joey,

Thanks for your inquiry. To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word document
  • Aspose.Words generated output document which shows the undesired behavior
  • Your expected document which shows the correct output. Please create this document using Microsoft Word application.
  • Share name of the merge field you're moving cursor to
  • Share HTML string you're passing to insertHtml method
  • Please create a standalone Console application (source code without compilation errors) that helps us reproduce your problem on our end and attach it here for testing.
  • What version of Aspose.Words for Java are you using?

As soon as you get these pieces of information ready, we'll start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip them and Click 'Reply' button that will bring you to the 'reply page' and there at the bottom you can include any attachments with that post by clicking the 'Add/Update' button.

Best regards,