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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top