View Single Post
  #3  
Old November 14th 06, 11:34 PM posted to microsoft.public.outlook.program_addins
Tony Gravagno
external usenet poster
 
Posts: 12
Default Programmatically finding calendar folders for Exchange server users

Thanks Dmitry! Well, a licensed instance of Outlook can be used from
a Windows service, it's just not a good idea. What's the alternative?
I've written apps that ran in the Windows tray to keep them
unobtrusive, but my users didn't like them because they needed to have
a user logged-in all the time in order to use them. I can easily
shift this code into an add-in (it's already encapsulated for this
sort of thing) which only gets run when someone is running Outlook,
maybe when they click a button. But what if that person is on
vacation? - These tasks may not get done for a couple weeks. As an
unattended service this process is independent of individuals.

Does anyone know if Outlook 2007 or some other tool (VSTO?) is better
for doing this sort of unattended, user-independent operation?

Regards,
Tony

"Dmitry Streblechenko" wrote:

See Namespace.GetSharedDefaultFolder.
Keep in mind that Outlook cannot be used from a Windows service.

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

"Tony Gravagno" wrote in message
I'm writing a Windows Service that retrieves appointment data from a
separate application, and it posts this data into the calendar for
individual exchange users. I'm using PIA with C# for all work so far
and it seems OK. The problem is ensuring I'm posting new appointments
to the right folders. I can easily open the default calendar folder
in a PST, but I don't know the approach for Exchange.

[snip]

Ads