ProgsX
asked on
outlookExpress and outlook address book
I want the address of contacts of OutlookExpress and Outlook. My code result does not have anything, not function. can you help me.
Var i, j, : Integer;
obj: OleVariant;
begin
ListView1.Items.Clear;
try
obj := CreateOleObject('outlookEx press.appl ication');
obj := obj.GetNameSpace('MAPI');
for i := 1 to obj.AddressLists.Count do
begin
for j := 1 to obj.AddressLists(i).Addres sEntries.C ount do
ListView1.Items.Add.Captio n := string(obj.AddressLists(i) .AddressEn tries(j).A ddress);
end;
except
end;
end;
Var i, j, : Integer;
obj: OleVariant;
begin
ListView1.Items.Clear;
try
obj := CreateOleObject('outlookEx
obj := obj.GetNameSpace('MAPI');
for i := 1 to obj.AddressLists.Count do
begin
for j := 1 to obj.AddressLists(i).Addres
ListView1.Items.Add.Captio
end;
except
end;
end;
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ProgsX,
any feedback ?
any feedback ?
read contact list from MS Outlook
http://www.delphipages.com/tips/thread.cfm?ID=144
https://www.experts-exchange.com/questions/21437814/Recurse-outlook-contacts-folders.html
https://www.experts-exchange.com/questions/21027197/importing-access-database-to-outlook.html
https://www.experts-exchange.com/questions/20173317/reading-Outlook-address-list.html
https://www.experts-exchange.com/questions/20081383/Address-book-from-Outlook.html
http://delphi.about.com/od/kbcontrolole/
http://delphi.about.com/od/kbcontrolole/l/aa110403a.htm
http://www.outlookcode.com/d/outtech.htm
Compo (OfficePartner)
http://sourceforge.net/projects/tpofficepartner/