Removing blank address lines

Hi,
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?

Hi
Thanks for your inquiry. You can use MailMerge.DeleteFields method to remove non-merged fields from document. See the following link for more information.
https://reference.aspose.com/words/net/aspose.words.mailmerging/mailmerge/deletefields/
Also you can use RemoveEmptyParagraphs property
https://reference.aspose.com/words/net/aspose.words.mailmerging/mailmergecleanupoptions/
I hope this could help you.
Best regards.