• Subject: C#, Redemption, not able to set appointment color in Outlook 2003
  • Author: Johan Machielse
  • Date: 23 Jul
  • References:
Dear reader,

I use the following piece of code to change the color of an appointment in
the calendar (appointment is of type Outlook.AppointmentItem). It does not
seem to work??? Any ideas what I am doing wrong?

Rdo.SafeAppointmentItem safe = new Rdo.SafeAppointmentItem();
safe.Item = appointment;
int propertyID = safe.GetIDsFromNames(
"{00062002-0000-0000-C000-000000000046}", 0x8214 );
propertyID = propertyID | 0x3;
safe.set_Fields( propertyID, color );
appointment.Save();

Thank you in advance!

Regards,

Johan Machielse
Avanade
23 JulC#, Redemption, not able to set appointment color in Outlook 2003.Johan Machielse
23 Jul\ Re: C#, Redemption, not able to set appointment color in Outlook 2003.Ken Slovak - [MVP - O...
23 Jul   \ Re: C#, Redemption, not able to set appointment color in Outlook 2.Johan Machielse
All times are in (US) Eastern Daylight Time (GMT -4:00)