Home All Groups Group Topic Archive Search About

C# code for Outlook Calendar Color

Author
2 Jun 2006 10:34 AM
shubhra.bakshi@gmail.com
I'm trying to access outlook calender through C#. I'm not able to
change the color of dates for holiday, and also not able to access the
properties 'Show time as' and 'Lable'.
I'm using this code:

                                     Outlook.ApplicationClass  oApp;
            Outlook.NameSpace oNameSpace;
            Outlook.MAPIFolder oMapiFolder;
                        Outlook.ApplicationClass  oApp;
            Outlook.NameSpace oNameSpace;
            Outlook.MAPIFolder oMapiFolder;
oMapiFolder =
oNameSpace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar);

Outlook.AppointmentItem appItem
=(Outlook.AppointmentItem)oApp.CreateItem
(Outlook.OlItemType.olAppointmentItem);

appItem does not accesses Label and Showtimeas properties.

Help Plz!!!
thanks in Advance.

AddThis Social Bookmark Button