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

Free Support Forum - aspose.com

Problem during mailmerge for a word template which have macro

Hi,

I am using Aspoe.Word for mail merging purpose of word templates. It is working fine when there is no macro in word templates but it does not merge if templates have any macro like IF field, Formula (i.e.SUM). I am also attaching one copy of template for which i am getting error.

Does Aspose.Word supports mail merging of macro fields?

Could you please update me about this functionality?

Another thing I would like to inform is that we will not be able modify templates for this functionality as huge number of templates uses this type of macro.

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

Thank you for your interest in Aspose products. Unfortunately, conditional logic is not supported by Aspose.Words. Aspose.Words doesn’t evaluate IF fields. See FAQ for more information. As workaround you can move your conditional logic into your SQL query or into MargeField event handler.

Best regards.

Does it support SUM(Above) or any other SUM function inside merge field?

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

Thanks for your inquiry. Unfortunately SUM is also unsupported. Currently Aspose.Words evaluates DOCVARIABLE and DOCPROPERTY fields only.

Best regards.