Free Support Forum - aspose.com

InsertHtml and text justification

Hi,


Well, that’s weird that my original message got truncated?

Retyping:

I have multiple merge fields in my template that are set to have alignment=Justify.

Most of the fields I use MailMerge.Execute(fieldNames, fieldValues) and it works fine and the output document looks great and justified.

However, I have a few fields that I insert HTML. I use:

docBuilder.MoveToMergeField(htmlMergeFieldName);
docBuilder.InsertHtml(htmlString);

In the above, the output document has reverted to alignment = Justify.

Any tips on maintaining the justified alignment?

Thanks,
Will

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

Thank you for considering Aspose.

I cannot guess why your message was truncated. Maybe you pressed “post” accidentally.

Formatting can depend on the HTML fragment you are inserting. Please attach here your document, provide the fragment and show your code. I have to know what field in the document is affected.

Regards,