• Subject: WordEditor property for Inspector null in Outlook
  • Author: Philip Enny
  • Date: 27 Jul
  • References:
I am writing an add in C# for Outlook 2007 that access the
ActiveInspector.WordEditor property in an event handler triggered by a
toolbar button. I have run across a situation where the WordEditor property
on the ActiveInspector is null. It so happens that the ActiveInspector is a
Contact, Mail, Task, or Calendar Inspector. Doesn't matter which Inspector.
I've checked the IsWordMail property which is true, but WordEditor is null.
This is only hapenning on one machine. Some additional information, I am not
accessing this object in the NewInspector event.

The code is:

_Document doc = (_Document)active_inspector.WordEditor;
Range range = doc.Application.Selection.Range;
object o = range; doc.Application.Selection.InlineShapes.AddPicture(path,
ref false_obj, ref true_obj, ref o);


doc in the above code snippet is null. Any feedback appreciated
27 JulWordEditor property for Inspector null in Outlook.Philip Enny
27 Jul\ Re: WordEditor property for Inspector null in Outlook.Ken Slovak - [MVP - O...
28 Jul   \ Re: WordEditor property for Inspector null in Outlook.Philip Enny
29 Jul      \ Re: WordEditor property for Inspector null in Outlook.Ken Slovak - [MVP - O...
21 Sep         \ Re: WordEditor property for Inspector null in Outlook.freedbill
22 Sep            \ Re: WordEditor property for Inspector null in Outlook.Ken Slovak - [MVP - O...
22 Sep               \ Re: WordEditor property for Inspector null in Outlook.freedbill
22 Sep                  |- Re: WordEditor property for Inspector null in Outlook.freedbill
22 Sep                  \ Re: WordEditor property for Inspector null in Outlook.Ken Slovak - [MVP - O...
22 Sep                     \ Re: WordEditor property for Inspector null in Outlook.freedbill
23 Sep                        \ Re: WordEditor property for Inspector null in Outlook.Ken Slovak - [MVP - O...
24 Sep                           \ Re: WordEditor property for Inspector null in Outlook.freedbill
24 Sep                              \ Re: WordEditor property for Inspector null in Outlook.Ken Slovak - [MVP - O...
24 Sep                                 \ Re: WordEditor property for Inspector null in Outlook.freedbill
24 Sep                                    \ Re: WordEditor property for Inspector null in Outlook.Ken Slovak - [MVP - O...
All times are in (US) Eastern Daylight Time (GMT -4:00)