BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Exchange / Calendar

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
Nico Callewaert
Guest





PostPosted: Mon Jan 24, 2005 2:05 pm    Post subject: Exchange / Calendar Reply with quote




Hi,

I use the following code to access the calendar in Outlook :

appOutlook.Connect;
NmSpace := appOutlook.GetNamespace('MAPI');
NmSpace.Logon('', '', False, False);
Calendar := NmSpace.GetDefaultFolder(olFolderCalendar);

Problem is my customer wants to access calendars of other
users. Is there a way to retrieve a list of all users from
the exchange server and then select wich calendar has to be
opened ?

Many thanks, Nico Callewaert
Back to top
Dmitry Streblechenko
Guest





PostPosted: Mon Jan 24, 2005 10:12 pm    Post subject: Re: Exchange / Calendar Reply with quote



You can use the Namespace.AddressLists collection to access GAL and
Namespace.GetDefaultSharedFolder to access other user's folders.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool


"Nico Callewaert" <nico_callewaert (AT) hotmail (DOT) com> wrote

Quote:

Hi,

I use the following code to access the calendar in Outlook :

appOutlook.Connect;
NmSpace := appOutlook.GetNamespace('MAPI');
NmSpace.Logon('', '', False, False);
Calendar := NmSpace.GetDefaultFolder(olFolderCalendar);

Problem is my customer wants to access calendars of other
users. Is there a way to retrieve a list of all users from
the exchange server and then select wich calendar has to be
opened ?

Many thanks, Nico Callewaert



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.