The comment itself is Comment.Range. You can use, say, the Text property of
the Range to extracty the Text from it - or other appropriate property
depending on the contents of the comment you expect, or are interested in.
--
Enjoy,
Tony
www.WordArticles.com
"Stanley Tan" <st (AT) climate-edge (DOT) com> wrote
Quote:
How can I programmatically extra comments in a Word document from my .NET
application?
I currently have code that looks something like this, but I have noticed
that the Comment object has every property (Author, Date, etc.) except for
the actual comment itself.
DocumentClass myDoc = (DocumentClass)axFramerControl1.ActiveDocument;
Comments comments = myDoc.Comments;
foreach (Comment comment in comments)
{
} |