Access word document in ReadingPane

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

Access word document in ReadingPane
Martin Schetat

Posts: 13
Joined: 2009-03-01

I would like to modify an email reply in a reading pane using the word editor. This works fine when the reply mail is shown in a separate window but I don't know how to access the word editor of the mail item shown in the reading pane.

I tried the following in the click event handler of my ribbon button (error handling omitted):

Outlook._Explorer explorer = context as Outlook._Explorer;

object currentItem = explorer.Selection[1];

Outlook._MailItem mailItem = currentItem as Outlook._MailItem;

Outlook._Inspector inspector = mailItem.GetInspector;

Word._Document mailDocument = inspector.WordEditor as Word._Document;

But the mailDocument returned is the one of the initial mail not the reply.

Thank you and best regards,

Martin Schetat
Posted 06 Mar, 2017 02:50:21 Top
Andrei Smolin

Add-in Express team

Posts: 17184
Joined: 2006-05-11
Hello Martin,

This is called inline response. You get the item which is being edited in the inline response via Explorer.ActiveInlineResponse ( You get the WordEditor via Explorer.ActiveInlineResponseWordEditor (

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 06 Mar, 2017 05:30:52 Top