Free Support Forum -

How to check for bookmark existence


I’m trying to find a way to check for the existence of certain bookmark within a document. In MS Word, it has something like Bookmarks.Exists(bookmark name) which returns a boolean. Is there anything like that DocumentBuilder or MailMerge?



In Aspose.Word you can check existence of a bookmark by comparison Document.Range.Bookmarks[bookmarkName] with null.

Thank you for considering Aspose.