Board index » delphi » Outlook Examples ?

Outlook Examples ?

Hi,

I'm looking for some examples of controlling outlook via ole ie: adding
contacts etc

Regs....Graeme

 

Re:Outlook Examples ?


<<Graeme:
I'm looking for some examples of controlling outlook via
 ole ie: adding contacts etc

Quote

There are some examples on my web site
http://www.djpate.freeserve.co.uk/Automation.htm

Adding items to folders is quite easy, you use the
Add method of a folder's items property:
var
  Contacts: MAPIFolder;
  CI: ContactItem;
begin
  Contacts := NmSpace.GetDefaultFolder(olFolderContacts);
  CI := Contacts.Items.Add(olContactItem) as ContactItem;
  CI.FirstName := 'Graeme';
  CI.LastName := 'Anthony';
  CI.Save;
--
Deborah Pate

Other Threads