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

Free Support Forum - aspose.com

How to associate a region of text with a merge field?

Hi,

I have a word doc template in which I've got some merge fields.

each merge field is followed by a certain region of text which may contain multiple paragraphs.

and at the end of building a document, when I delete the blank merge fields, I need to delete the entire text region followed by the merge field.

I'm wondering if there is a way to associate this text region with the merge field, so that when I delete the merge field the entire text region is deleted.

I'd appreciate any help in this regard.

Thanks,

Kiran.

Ususally, to remove regions of text bookmark is used. Bookmark the necessary regions and remove them by setting Bookmark.Text property to an empty string.

Best regards,