How to move the cursor to the bookmark that contains image using .NET

Hi,

I’m trying to replace a bookmark with an image or html.
So far i have managed to use the go to bookmark and insert an image and html using the document builder but the original bookmark still exists there which i do not want.

When I try to set the bookmark text to “” or try and delete the bookmark, the image and html does not get inserted.

How can i do what im trying to achieve?

nevermind, i figured it out.

seems there are additional properties in the MoveToBookmark method that need to be set.

for anyone having the same issue you MoveToBookmark method should look like this:

builder.MoveToBookmark(bookmark.Name, true, false);

cheers.

@Deepam.Trivedi

It is nice to hear from you that you have solved your query. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.