I’m just evaluating Aspose.Word and have experienced some trouble with conditional mergefields.
I’m trying to populate a .dot containing mergefields that are dependant on an if-condition, e.g. if value of mergefield “ContactType” = ‘Company’ then the Label for the field signature should read ‘On behalf of ABC Inc’ else ‘John Smith’. It appears that these labels, which are not fields directly mapped to fields in the datareader but dependant on information contained in datareader fields, are ignored when the merge is performed. Is there any way to get this done?
Thanks very much for your efforts!