I have a method to which I pass the Document, a bookmark name and a boookmark value.
I look for the bookmark name and replace it's text with the bookmark value passed into the method
Not if I have a single bookmark it works just fine, but when I add another bookmark it displays this error within the aspose word component
"Attempted to clone a by reference attribute '16', but the attribute does not expose the complex attribute interface."
public void InsertBookmark(ref Document newDoc, string bookmarkName, string bookmarkValue)
Bookmarks bookmarks = newDoc.Range.Bookmarks;
Bookmark bookmark = bookmarks[bookmarkName];
bookmark.Text = bookmarkValue;
I have looked at the objects and the bookmarkobject is not null, and everything seems to be ok.
The environment I am working on is XP with VS2005 C#
Any ideas would be appreciated.