A
Anushya
Hi
How to get the id of a name in contact items in outlook. How to do it
thru redemption in .net??
i tried the code below. but it shows the error. pls have a look at the
code
Microsoft.Office.Interop.Outlook.NameSpace oNs;
oNs = Connect.oApplication.GetNamespace("MAPI");
//it shows an error here - invalid cast exception
Redemption.AddressLists rAddressLists = (Redemption.AddressLists)
oNs.AddressLists;
for (int intI=0; intI < rAddressLists.Count;intI++)
{
Redemption.AddressList rAddressList = rAddressLists.Item(intI);
MessageBox.Show(rAddressList.ID + " " + rAddressList.Name);
}
Thanks
Anushya
How to get the id of a name in contact items in outlook. How to do it
thru redemption in .net??
i tried the code below. but it shows the error. pls have a look at the
code
Microsoft.Office.Interop.Outlook.NameSpace oNs;
oNs = Connect.oApplication.GetNamespace("MAPI");
//it shows an error here - invalid cast exception
Redemption.AddressLists rAddressLists = (Redemption.AddressLists)
oNs.AddressLists;
for (int intI=0; intI < rAddressLists.Count;intI++)
{
Redemption.AddressList rAddressList = rAddressLists.Item(intI);
MessageBox.Show(rAddressList.ID + " " + rAddressList.Name);
}
Thanks
Anushya