If it's only on one machine then it's specific to that machine obviously. I
haven't seen anything like that so far myself.
IsWordMail will always be true for Outlook 2007, so that's really a useless
flag for Outlook 2007.
Is Outlook the only 2007 version on that machine? Are the other Office
applications on that machine 2003 version? What about Word specifically on
that machine? Is it there, and if so what version?
No exceptions, only a null when instantiating doc? Do you get various other
properties from the ActiveInspector() if you instantiate an Inspector
object, or are they also null?
Usual questions like: what other addins? What happens if they're disabled?
Any synch software? What A-V, is it integrated with Outlook at all, any
changes if it's disabled?
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"Philip Enny" wrote in message
...
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