HOW DO I READ ALL CONTACTS?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am developing application for Address Book Synchronization with my
Database. Where by i need to read all the contacts at one go into
memory/table how do i read all contacts from address book to memory/table?
 
Are you using Microsoft Access? If so, it is easy to use the Link Tables
feature to read directly from your Address Book or Contacts folder; the data
will be imported as a table.

Otherwise, just iterate through all the objects in the MAPIFolder.Items
collection of your Contacts folder, and parse the properties of the
ContactItem objects to create records in your database using whatever
database API (DAO, ADO, etc.) you need to use.

See this page for more info:

Connecting Outlook and Exchange to Databases:
http://www.outlookcode.com/d/database.htm
 
Back
Top