
October 10th, 2009, 02:44 PM
|
|
Registered User
|
|
Join Date: Sep 2009
Posts: 4
Time spent in forums: 9 m 31 sec
Reputation Power: 0
|
|
|
Details of contacts from outlook
Hi,
I develop VB.net 2008 with c# Application for fetch appoitment item from outllook 2003.
I need to show the contact with their mobile number,which are stored in outlook contact
related to the appointments in calender.
Code:
int i = 0;
Outlook.Application oApp = new Outlook.Application();
Outlook.NameSpace oNS = oApp.GetNamespace("MAPI");
oNS.Logon(Type.Missing, Type.Missing, false, true);
Outlook.MAPIFolder Ocalender = oNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFo lderCalendar);
Outlook.Items oItems = Ocalender.Items ;
int iNumContacts = oItems.Count;
Outlook.AppointmentItem c = (Outlook.AppointmentItem)(oItems[1]);
string sub = c.Subject;
string body = c.Body;
If someone need more description abt this,kindly ask
Plz. help
Thanks in Advance
Pratik Asthana
|