How can I access calendar data?

  • Thread starter Thread starter dgk
  • Start date Start date
Anyone have an example of how to access the appointments in the
calendar?

Create a new OutlookSession and then use the
Newoutlooksession.Appointments.Items to access the appointments.
You may then browse through the entire list in a for loop and separate
out the various fields like Date etc.

Here is the code to do it:

private AppointmentCollection appointmentCollection;
NewOutlookSession = new OutlookSession( );
appointmentCollection = NewOutlookSession.Appointments.Items;

//You may then use your custom code to display only select parts of
the calendar items


Regards,
Treadstone
 
Create a new OutlookSession and then use the
Newoutlooksession.Appointments.Items to access the appointments.
You may then browse through the entire list in a for loop and separate
out the various fields like Date etc.

Here is the code to do it:

private AppointmentCollection appointmentCollection;
NewOutlookSession = new OutlookSession( );
appointmentCollection = NewOutlookSession.Appointments.Items;

//You may then use your custom code to display only select parts of
the calendar items


Regards,
Treadstone


Thanks, perfect.
 
Back
Top