Hi Mario,
I need to generate a word document containing custom fields with HTML formatting and where I also need to remove empty merged field. I thus tested MailMergeClearOptions as you recommened.
But I am experiencing weird issue when using MailMergeClearOptions with some of the options.
When using: document.MailMerge.ClearOptions = MailMergeClearOptions.RemoveUnusedFields | MailMergeClearOptions.RemoveEmptyRanges
my generated word document contains my HTML fields but didn’t remove the empty fields.
When I set ClearOptions
with all the options, it removes my empty fields (which is good) but I also removes all the custom HTML fields content:
document.MailMerge.ClearOptions = MailMergeClearOptions.RemoveUnusedFields | MailMergeClearOptions.RemoveEmptyParagraphs | MailMergeClearOptions.RemoveEmptyRanges | MailMergeClearOptions.RemoveEmptyTableRows;
I also purchased the upgrade package so I use the latest binaries.
Is this a bug?
Thanks,
Omid.