Outlook outlook = new Outlook();
Iterator addressLists = outlook.getAddressLists().iterator();
while(addressLists.hasNext())
{
AddressList addressList = (AddressList) addressLists.next();
Iterator addressEntries = addressList.getAddressEntries().iterator();
while(addressEntries.hasNext())
{
AddressEntry addressEntry = (AddressEntry) addressEntries.next();
System.out.println("Address entry: " + addressEntry.getName() + " / " + addressEntry.getAddress());
addressEntry.dispose();
}
}
outlook.dispose();
API Reference
| Classic JavaDoc |
Outlook.getAddressLists
public AddressListsCollection getAddressLists()
Community comments
Powered by JavaDocPlus