Removing Comment's reference text

M

mohsenb55

Hi, In order to insert a comment you need to highlight a character and then
insert a comment. When I create the document, also I am insert a lots of
comments and text for the comments. The text is a reference to my data
source. I am opening a document in C# and the document and accessing the
comments. I am using the comment as a reference to my data source. I get the
collection of comments by using
foreach (Word.Comment comment in WordDoc.Comments)
{
comment.Reference.InsertBefore("Value" + Mydata.ToString());
}
and replace my data in the referenced location but I also want to remove the
highlighted text from the document.
Can any one knows how to do this?
Thank you in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top