I’ve got the following exception while trying to remove all bookmarks inside my word document.
Aspose.Words.PleaseReportException: Exception ‘Cannot find bookmark ‘OLE_LINK5’ in the document.’ occured in Aspose.Words for .NET 18.104.22.168. For free technical support, please post this error and the file in the Aspose.Words Forums http://www.aspose.com/forums/ShowForum.aspx?ForumID=75. in գ.ട.ദ(Node ࠅ, String ണ) in Aspose.Words.Bookmark.get_BookmarkEnd() in Aspose.Words.Bookmark.Remove()
My code does that:
For Each Bk As Words.Bookmark In Me.Range.Bookmarks Bk.Remove() Next
Only one bookmark fails (“OLE_LINK5”).
Same code is working fine with other documents, so I have attached the specific document that raises the exception. Please help.