Removeing mergeFields for tables that have no rows?

I am doing a ExecuteWithRegions to load a table i have in a word doc. It works fine until my DataTable has no rows. When this happens the merge fields are all displayed in my word doc instead of nothing at all. Is there a setting or something that will hide empty tables instead of displaying the MergeFields?

Hi Abe,

Thanks for your inquiry.

Please try using the code from this thread which will remove any empty regions from the document. To remove the empty table as well you need to pass true to the constructor of the RemoveEmptyRegions class. We are aware that customers were using this functionality and will reinstate this behaviour into the mail merge engine within the next few months. We will keep you informed of any developments.

Thanks,

The issues you have found earlier (filed as 17666) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(9)