Hello,
I’m having some trouble trying to get NEXTIF to work as expected. I’m using NEXTIF inside my template to skip a record inside of a Region.
I’m using the following syntax:
{TableStart group}
{ NEXTIF { MERGEFIELD property } <> “SomeString” }
… Other mergefields, Word table, …
{TableEnd group}
However, after the NEXTIF has done it’s job all the other mergefields, template defined tables etc… Still get outputted instead of being omitted.
Another question I have is how to define mutiple CleanupOptions in Java?
doc.getMailMerge().setCleanupOptions() takes an int so I presume I can let it take mutiple cleanupoptions by adding them in like so:
doc.getMailMerge().setCleanupOptions(MailMergeCleanupOptions.REMOVE_UNUSED_REGIONS + MailMergeCleanupOptions.REMOVE_UNUSED_FIELDS);
Thanks