Problem with Trailing Empty Records for Mailing labels

Hello,

We are evaluating Aspose.Words and I'm trying to create a mailing label document (Avery 5160). Using regions, I've managed to get the document to correctly trim empty rows on the last page of the document. However, the last row displays the merge codes instead of empty space for the last 1 or 2 records if they are empty. I've tried adding conditional if codes, but they seem to always return false no matter what the condition. What am I missing?

Randy

You can use MailMerge.DeleteFields() method to remove remaining mail merge related fields from the document after mail merge execution.

Concerning IF fields - they are not evaluated in Aspose.Words yet. It is planned for one of the future versions.

That seemed to do the trick. Thank you.

Randy