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

Free Support Forum - aspose.com

MailMerge HTML preserve document formatting - missing link

Hi,

A previous forum post includes an attachment from your development team that appears to be what we are after:

<a href="</a></p><p>This relates to HTML output being merged with the formatting already applied to the Word document template.</p><p>Unfortunatly the attachment says that it is present but inaccessible. Please could you point us towards this code if it is still available</p><p>Thanks,</p><p> </p>

Hi Maurice,


Thank you for inquiry. Please find the attachment as workaround shared by my colleague in given thread.

Then use the following code:

<o:p> </o:p>

for (int i = 0; i < docmailmerragefields.Length; i++)<o:p></o:p>

{<o:p></o:p>

if (docmailmerragefields[i].Equals(“BarcodeString”))<o:p></o:p>

{<o:p></o:p>

bbb.MoveToMergeField(“BarcodeString”);<o:p></o:p>

InsertHtmlWithBuilderFormatting(bbb, BarcodeString);<o:p></o:p>

}<o:p></o:p>

}


Please visit the link for more details:
https://forum.aspose.com/t/53489

In case of any ambiguity, please let me know.

That’s great thanks