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

Free Support Forum - aspose.com

How to get the list of bookmarks in a word using Aspose

I need the list of bookmarks. Here is waht to do, i have a word document and i need to parse it with Aspose words and then get the list of bookmarks in it. how to do it?

Thanks for your interest in Aspose.Words. You can try to use Range.Bookmarks property to get all bookmarks from document. For example see the following code.

Document doc = new Document(@"336_101628_raviteja\in.doc");
Bookmarks bookmarks = doc.Range.Bookmarks;
foreach (Bookmark bookm in bookmarks)
    string name = bookm.Name;

I hope that this will help you.
Best regards.