MailMergeDeleteFields Method

Removes mail merge related fields from the document.

Namespace:  Aspose.Words.MailMerging
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public void DeleteFields()
Remarks

This method removes MERGEFIELD and NEXT fields from the document.

This method could be useful if your mail merge operation does not always need to populate all fields in the document. Use this method to remove all remaining mail merge fields.

Examples
Shows how to delete all merge fields from a document without executing mail merge.
doc.MailMerge.DeleteFields();
See Also