Shai Raiten
Posts: 46
Joined: 2008-01-29
|
Hello.
I am trying to get the text of the paragrah items, but all I get is a COM object, which I have no idea what to do with.
How do I interact with the object WordApp.ActiveWindow.Document.Paragraphs?
Thanks. |
|
Sergey Grischenko
Add-in Express team
Posts: 7233
Joined: 2004-07-05
|
Hi Shai.
You just need to cast the COM object to the Word.Paragraph interface.
Word.Paragraph p =
WordApp.ActiveWindow.Document.Paragraphs[1] as Word.Paragraph;
MessageBox.Show(p.Range.Text);
|
|
Shai Raiten
Posts: 46
Joined: 2008-01-29
|
|