EDN Admin
Well-known member
Hi!
Im currently working on a small application that sits in the background and updates a server of mine every 10 minutes about changes in my outlook calendar.
Now, I have more then one calendar. I have one for work where I put all my work stuff and one personal for personal stuff (just so I get a reminder on my phone, but still filtered away from company stuff).
The work calendar is the standard one and is the one im syncing right now, but I cant get it to sync my personal one. Ive tried the following:
<pre><div style="color:black; background-color:white <pre>Microsoft.Office.Interop.Outlook.Application oApp = <span style="color:blue null;
Microsoft.Office.Interop.Outlook.NameSpace mapiNamespace = <span style="color:blue null;
Microsoft.Office.Interop.Outlook.MAPIFolder CalendarFolder = <span style="color:blue null;
Microsoft.Office.Interop.Outlook.Items outlookCalendarItems = <span style="color:blue null;
oApp = <span style="color:blue new Microsoft.Office.Interop.Outlook.Application();
mapiNamespace = oApp.GetNamespace(<span style="color:#a31515 "MAPI"); ;
CalendarFolder = mapiNamespace.GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderCalendar); outlookCalendarItems = CalendarFolder.Items;
outlookCalendarItems.IncludeRecurrences = <span style="color:blue true;[/code]
[/code]
But here CalendarFolder.Folders in empty :-( Does someone have a clue on how i fetch other calendars?
<br/>
<br/>
View the full article
Im currently working on a small application that sits in the background and updates a server of mine every 10 minutes about changes in my outlook calendar.
Now, I have more then one calendar. I have one for work where I put all my work stuff and one personal for personal stuff (just so I get a reminder on my phone, but still filtered away from company stuff).
The work calendar is the standard one and is the one im syncing right now, but I cant get it to sync my personal one. Ive tried the following:
<pre><div style="color:black; background-color:white <pre>Microsoft.Office.Interop.Outlook.Application oApp = <span style="color:blue null;
Microsoft.Office.Interop.Outlook.NameSpace mapiNamespace = <span style="color:blue null;
Microsoft.Office.Interop.Outlook.MAPIFolder CalendarFolder = <span style="color:blue null;
Microsoft.Office.Interop.Outlook.Items outlookCalendarItems = <span style="color:blue null;
oApp = <span style="color:blue new Microsoft.Office.Interop.Outlook.Application();
mapiNamespace = oApp.GetNamespace(<span style="color:#a31515 "MAPI"); ;
CalendarFolder = mapiNamespace.GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderCalendar); outlookCalendarItems = CalendarFolder.Items;
outlookCalendarItems.IncludeRecurrences = <span style="color:blue true;[/code]
[/code]
But here CalendarFolder.Folders in empty :-( Does someone have a clue on how i fetch other calendars?
<br/>
<br/>
View the full article