mailmerge.zip (71.4 KB)
This issue started coming after upgrade of Aspose.Words FROM 14.2.0 TO 16.8.0.
If you don’t have Conditional Logic in the Mail Merge, it comes out clean once exported. If you have Conditional Logic in the Mail Merge, it has issues and mail merge code is returned instead of values in most fields. This was working fine before Aspose.words upgrade.
If a template has a conditional statement (an IF statement and/or a table start/table end AND the fields referenced are from multiple applications that are crossed reference to each other, in on of the fields, the mail merge code for table start or the IF statement are returned instead of the values of the respective fields.
Attached “Mail_Merge_template_code_w_conditions.docx” template which is with if condition returns mail merge code instead of value. see the result attached “Mail_Merge_example_output_w_conditions.docx”
Attached “Mail_Merge_template_code_wo_conditions.docx” template which is without if condition gives values which is CORRECT. see the result attached
“Mail_Merge_example_output_wo_conditions.docx”