Free Support Forum - aspose.cloud

Microsoft Word Document Mail Merge with rich text using Aspose.Words REST API

Hi,


We have used aspose cloud APIs for document merge on Salesforce and currently we are facing the issue with rich text merge. The issue is formatting of rich text is not coming properly on merged document.

Please find following details related input and output of aspose document merge
1. Document template is attached to this post and the field which is mentioned in template contains values : Role’s

2.Request :
Url -
https://api.aspose.com/v1.1/words/OutputFile/executeTemplate?cleanup=ContainingFields,EmptyParagraphs,UnusedFields,UnusedRegions,RemoveTitleRow,RemoveTitleRowInInnerTables&appSID=e8c4f52b-f08b-456f-ad91-6ec71c2a189

JSON request -
{“dataSourceList”:{“contractDS”:{“contractName”:null,“contractDescription”:“Role’s”}}}

3.Output file is attached to post and it contains merged string as follows:
Role’s

As per the rich text formatting, merged string should be Role’s but it is not coming properly in merged document.

We wanted to know, is there any API which we can use to create merge document with rich text in correct format. Please advice.


Hi Preeti,


I have attached sample JSON file and Word document here for your reference. Please try mail merge with regions on this document. Hope, this helps in resolving your problem.

Best regards,

I am facing similar issue already posted in this forum.
Can anyone help me with this?

@SagarGurav

I have answered your question here.