Using Paragraph.Item

Add-in Express™ Support Service
That's what is more important than anything else

Using Paragraph.Item
Shai Raiten

Posts: 46
Joined: 2008-01-29

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?

Posted 05 Feb, 2008 16:28:08 Top
Sergey Grischenko

Add-in Express team

Posts: 7224
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;

Posted 06 Feb, 2008 07:01:31 Top
Shai Raiten

Posts: 46
Joined: 2008-01-29
Thanks Alot
Posted 07 Feb, 2008 02:25:32 Top