P
peter z
Hello,
I have an addin (C#, .Net v1.0) which is based on the VS7.0 wizard generated
code. I'm running Outlook 2000 (9.0.03821).
I am trying to do special processing on appointment items. I have an
InspectorsEvents_NewInspectorEventHandler which gets called whenever I open
an appointment from my calendar but it only seems to work for non-recurring
appointments.
Does anyone know what the distinction is between single occurrence and
recurring appointments?
My event handler code is below:
private void _OnNewInspector(Inspector inspector)
{
if (inspector.CurrentItem is AppointmentItem)
{
AppointmentItem appt = (AppointmentItem) inspector.CurrentItem;
Debug.WriteLine(appt.Subject);
}
else
Debug.WriteLine("unrecognized item");
}
Any single occurrence appointment results in the first WriteLine (as
expected) but recurring appointments result in NO WriteLine, ie. the
NewInspector handler is never called!
Any insights greatly appreciated.
-Peter
PS - I posted originally to microsoft.public.developer.outlook.addins but
got no replies there.
I have an addin (C#, .Net v1.0) which is based on the VS7.0 wizard generated
code. I'm running Outlook 2000 (9.0.03821).
I am trying to do special processing on appointment items. I have an
InspectorsEvents_NewInspectorEventHandler which gets called whenever I open
an appointment from my calendar but it only seems to work for non-recurring
appointments.
Does anyone know what the distinction is between single occurrence and
recurring appointments?
My event handler code is below:
private void _OnNewInspector(Inspector inspector)
{
if (inspector.CurrentItem is AppointmentItem)
{
AppointmentItem appt = (AppointmentItem) inspector.CurrentItem;
Debug.WriteLine(appt.Subject);
}
else
Debug.WriteLine("unrecognized item");
}
Any single occurrence appointment results in the first WriteLine (as
expected) but recurring appointments result in NO WriteLine, ie. the
NewInspector handler is never called!
Any insights greatly appreciated.
-Peter
PS - I posted originally to microsoft.public.developer.outlook.addins but
got no replies there.