HighTechTalks DotNet Forums  

Comments from Word Dcoument

Visual Studio.net (Tools Office) microsoft.public.vsnet.vstools.office


Discuss Comments from Word Dcoument in the Visual Studio.net (Tools Office) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Stanley Tan
 
Posts: n/a

Default Comments from Word Dcoument - 01-08-2009 , 02:56 AM






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)

{


}



Reply With Quote
  #2  
Old   
Tony Jollans
 
Posts: n/a

Default Re: Comments from Word Dcoument - 01-08-2009 , 05:49 AM






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)

{


}




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.