Outlook calendar color with exchange

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i have coded this :
CDO.Appointment iAppt = new CDO.Appointment();
ADODB.Connection Conn = new ADODB.Connection();
Conn.Provider = "ExOLEDB.DataSource";
iAppt.StartTime = StartTime;
iAppt.EndTime = EndTime;
iAppt.Subject = Subject;
iAppt.Location = Location;
iAppt.TextBody = TextBody;
iAppt.BusyStatus = BusyStatus;
Conn.Open(iMbx.BaseFolder, "", "", -1)
iAppt.Fields["http://schemas.microsoft.com/mapi/{0220060000000000C000000000000046}/0x8214"].Value = 4.0;
iAppt.Fields.Update();
iAppt.DataSource.SaveToContainer(iMbx.Calendar, null,
ADODB.ConnectModeEnum.adModeReadWrite,
ADODB.RecordCreateOptionsEnum.adCreateNonCollection,
ADODB.RecordOpenOptionsEnum.adOpenSource, "", "");
Conn.Close();

this add an appointment correctly but the color wasn't changed. ok you do
not cover exchange development but this is in relation with mapi. So you have
probably a knowledge in this technique. I haven't found anything in newsgroup

Thanks
 
Check the microsoft.public.exchange.development group for the recent discussion titled "Change appointment's label color with CDOEX."
 
Back
Top