Question Read outlook (or exchange) calendars

Bizkaiko

New member
Joined
Mar 28, 2012
Messages
1
Programming Experience
3-5
Hi!
I want to realize a program that can check appointments from various exchange calendars.
I think the easier way is to read it via outlook client: I can read my own calendar but I don't know how to log in as administrator and read other user's calendars.
This is the code I use:
VB.NET:
Dim objOLApp As Outlook.Application
objOLApp = New Outlook.Application
Dim myNamespace As Outlook.NameSpace
myNamespace = objOLApp.GetNamespace("MAPI")
Dim CalendarFolder As Outlook.Folder = myNamespace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar)
Dim objCalenderItem As Outlook.AppointmentItem
For intAppointmentCtr As Int32 = 1 To CalendarFolder.Items.Count
   objCalenderItem = CalendarFolder.Items.Item(intAppointmentCtr)
   ...[retrieving datas].....
Next
but how can i log in as administrator and open User1-Calendar_Folder, User2-Calendar_Folder...?

or how can i read datas directly from exchange server (2003, but soon it will be upgraded to 2010) and not from outlook?
 

Latest posts

Back
Top