We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Removing blank address lines

When using Aspose.Words to mail merge documents for letters to our clients, some of the the merge fields we use in the address section may be blank. Is there any in-built support for removing such fields if they have not be merged with data?

Thanks for your inquiry. You can use MailMerge.DeleteFields method to remove non-merged fields from document. See the following link for more information.
Also you can use RemoveEmptyParagraphs property
I hope this could help you.
Best regards.