I have two MailMerge tables, of which one can be empty.
I use
doc.getMailMerge().setCleanupOptions(MailMergeCleanupOptions.REMOVE_UNUSED_REGIONS);
to not render the table at all, if it is empty.
The problem is, the t…...data tables into data set and fill the whole template with data...to instruct Aspose.Words to fill regions with the same name....