Please repost to one of the outlook programming groups like the _vba group.
--
Milly Staples [MVP - Outlook]
Post all replies to the group to keep the discussion intact.
ALWAYS post your Outlook version.
How to ask a question:
http://support.microsoft.com/KB/555375
After furious head scratching, pratikasthana17 asked:
| 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.olFolderCalendar);
| 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