Merge IFs


#1

Hi,

I'm trying to work with IF fields with Aspose.Words (latest version)

In Word I have:

{ IF { MERGEFIELD bobo \* MERGEFORMAT } = "1" "Y" "N" \* MERGEFORMAT }

and that seems to work when I do a merge from within Word (i.e. through an Excel datasource). However, when I use Aspose.Words and assign the field bobo to be "1" it doesn't work on a MailMerge.Execute. Normal mergefields are all working properly, it just doesn't seem to execute the IF command (the result is always "N" regardless of the value of bobo).

Is there something else I need to be doing?

Thanks
Patrick


#2

In the current version of Aspose.Words the IF fields are not evaluated during MailMerge. They are preserved as is. We are considering adding support for IF fields evaluation in the future, but no timeframe is set yet.