Merge Codes show in Word doc for unused labels


#1

I'm trying to crank out mailing labels using ASPOSE.Word. I have a mail merge document set up with name and address info in each cell.

For example my word doc has 15 labels on it (3 across by 5 rows down) and each label looks like this:

<> <>

<>

However, if I only have 2 records in my dataset the 13 other labels on the page still show the merge codes.

Do I need an upgrade version of the product or have I created my merge doc in Word incorrectly?

Thanks,
Jason


#2

You can use MailMerge.DeleteFields() to clean up unused fields after MailMerge execution.

Best regards,


#3

Perfect! Thanks a lot!