Hi there,

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:
using System;
using Microsoft.Office.Interop.Outlook;
namespace Dataprovider
    class Program
        static void Main(string[] args)
            //ExchangeUser oExUser;
            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)
                        //    Console.WriteLine(oExUser.FirstName);
                        //    Console.WriteLine(oExUser.LastName);
                        //    Console.WriteLine(oExUser.StreetAddress);
                        //    Console.WriteLine(oExUser.CompanyName);
                        //    Console.WriteLine(oExUser.Department);
                        //    Console.WriteLine(oExUser.OfficeLocation);
                        //    Console.WriteLine(oExUser.JobTitle);
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?


Note, i