I'm attempting to use GetBookmarkContent to get contents of a bookmark from one word document and copy it to another word document. I'm using TextBodyPart which doesn't not seem to retain the formatting of the word document within the bookmark. Is there another method to resolve this?
Document noteDocument = new Document();
noteDocument.LoadFromFile(noteValue);
BookmarksNavigator bmNavigator = new BookmarksNavigator(noteDocument);
bmNavigator.MoveToBookmark("SampleNote");
bmNavigator.ReplaceBookmarkContent();
TextBodyPart textBodyPart = bmNavigator.GetBookmarkContent( );
textBodyPart does not retain formatting. In addition, how do I get the part into another word document?
Thank You!