Outlook 2003 + .net2.0
-
objoutlook = new Outlook.ApplicationClass(); objNamespace = objoutlook.GetNamespace("MAPI"); Outlook.ApplicationClass appOut = new Outlook.ApplicationClass(); int i = objoutlook.Session.AddressLists["Contacts"].AddressEntries.Count; i am able to count the contacts in Contacts folder of outlook . But if i replace contacts with Address Book i get the error Operation failed object could not be found. I want to access address book of outlook . Can anyone please guide me .
-
objoutlook = new Outlook.ApplicationClass(); objNamespace = objoutlook.GetNamespace("MAPI"); Outlook.ApplicationClass appOut = new Outlook.ApplicationClass(); int i = objoutlook.Session.AddressLists["Contacts"].AddressEntries.Count; i am able to count the contacts in Contacts folder of outlook . But if i replace contacts with Address Book i get the error Operation failed object could not be found. I want to access address book of outlook . Can anyone please guide me .
This may help :-) http://support.microsoft.com/?kbid=313797[^]