views:

15

answers:

0

I have an add-in for Outlook 2007 developed with VSTO 3.0 in Visual Studio 2008, written in VB.NET

I am listening for NewInspector events and wrapping the Inspector object, then listening for the Activate event where I attempt to grab the WordEditor. The property is always returning null now. This was not happening before, and the only changes made were some refactoring done to some other areas of the program - not related to this area. The add-in remains to work fine on my laptop, but my desktop has the issue.

All the results I have found for this case are either people trying to get it from the NewInspector event and being told to use Activate, or in a situation such as mine with no resolution.

The WordEditor is a protected property and I believe I understand the situation around those. This is an in-process add-in and I don't even get the prompt about accessing sensitive information. In Help > About I see security is "Default". What is more confusing is that I can access another protected property on the MailItem object (HTMLBody) so it suggests that it may be related to the fact I'm trying to access something related to Word? Prior to this there was no security software installed on the desktop (some corporate version of Norton on the laptop as it's a work issued machine) so I installed NOD32 to see if it was an issue with the system being unprotected.

The working system is a laptop running XP. The problematic system is a desktop running Windows 7.

Hoping someone else has had a similar experience and figured it out.