How can I access calendar data?

T

Treadstone

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
 
D

dgk

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top