December 22nd, 2009, 08:38 AM
Exporting Global Address List loaded in Outlook to .NET program
what I am trying to do is acces the GAL, which is "loaded" in Outlook (2000) in my .NET project (C sharp atm). All seems to work, however, I can't seem to figure out how to access other fields which are also available in Outlook (for example: company name). All I can acces atm are the name/address/manager of a certain contact. Here is what i coded so far:
as you can see I tried to use the getproperty statement on the MAPIOBJECT of an addressentry, which was my last attempt on getting it to work. Can anyone direct me in the right direction to how I can retrieve -all- GAL data through Outlook?
static void Main(string args)
Application app = new Microsoft.Office.Interop.Outlook.Application();
foreach (AddressList addressList in app.Session.AddressLists)
if (addressList.Name == "Global Address List")
foreach (AddressEntry item in addressList.AddressEntries)
//oExUser = item.GetExchangeUser();
//if (oExUser != null)
Tags for this Thread
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!