Hello,
We have a document that displays several “child” tables. When one of those child tables does not return any rows, then the Merge Fields show on the document which looks pretty ugly. We’ve tried to “clean-up” those merge fields, without success. Here are some supporting resources:
- The first attachment shows the document after the merge with the Merge Fields that we need removed. As a reminder, this only happens when the v_SignLic does not contain any rows.
- The second attachment shows the code we are using to do the clean-up, which is straight from this blog post: https://blog.aspose.com/category/words
As a related question, do I need to “redeclare” the clean-up options before each .MailMerge.Execute call? Stated another way, right now, I set the clean-up options before each of my executes on this document. It seems a little unnecessary. I’m wondering if setting them once before my first execute will do the trick for all remaining executes.
Thanks for the help!
Jim