Stefanie Ewald
Posts: 1
Joined: 2020-03-13
|
Hi there,
we migrated from Windows 7 to 10 and from Office 2010 to Office 2016. We use the latest version of the Add-in Express.
Now our addin doesn't work anymore. The "ActiveInspector" is always null and I cannot access the CurrentItem.
private void LoadContract()
{
Inspector currInspector = null;
AppointmentItem appointment = null;
MAPIFolder contractFolder = null;
MAPIFolder commandFolder = null;
try
{
currInspector = OutlookApplication.ActiveInspector();
appointment = (AppointmentItem)currInspector.CurrentItem;
..... |
|
Andrei Smolin
Add-in Express team
Posts: 18816
Joined: 2006-05-11
|
Hello Stefanie,
I suppose there's something in your code or in environment.
In what Outlook event do you invoke that method?
How OutlookApplication is declared and defined?
Andrei Smolin
Add-in Express Team Leader |
|