Free Support Forum - aspose.cloud

Conditional Blocks (IF ELSE Fields) with Mail Merge Mustache Microsoft Word Template in Aspose.Words REST API

Where is the current documentation for MergeTemplate:


https://docs.aspose.com/display/wordsnet/About+Mail+Merge#AboutMailMerge-MailMergeusing’Mustache’TemplateSyntax
We are currently using word documents with mustache syntax, but would like to move to something newer that can support IF/THEN/ELSE type logic, and it appears that this may be possible using LINQ templates, but the documentation is sparse or non-existant, and initial testing is not working so I’m thinking the LINQ is not available on the Words for Cloud product yet.

Can someone clarify this or point to current documentation.

Thanks
Hello,

Thank you for contacting Aspose Support.

Aspose.Words for Cloud is built as a wrapper on top of Aspose.Words and supports most features provided by the later especially when it comes to Mail Merge.

Aspose.Words supports Mustache Templates for Mail Merge. You can read more About Mail Merge in Aspose.Words documentation. To learn how to use Mail Merge features with Aspose.Words for Cloud, you can read more on Using Mail Merge features with Word documents.

If you require any further help, do let us know.

@FoundantTechnologies

As suggested above you can use conditional blocks in Mustache Template for your requirements. However, since Aspose.Words Cloud 20.5, you can use Aspose LINQ reporting engine in Aspose.Words Cloud as well. We have introduced following API Method for building reports. Hopefully it will help you to accomplish your requirement using Aspose.Words REST API.

PUT ​/words​/{name}​/buildReport Executes document “build report” operation.

​PUT /words​/buildReport Executes document “build report” online operation.