P
Philip Enny
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
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