Outlook Contacts with C#

  • Thread starter Thread starter Jörg Schroeder
  • Start date Start date
J

Jörg Schroeder

How can i create Outlook Contacts with C#.
I always get errors or program crashs. Why am i not able to create an
instance of Outlook.ContactItem? What do i have to do?

FYI: I have the references correct and namespace (MAPI) and such things:
private Outlook.Application objOutlook = null;

private Outlook.NameSpace objNamespace = null;

private Outlook.MAPIFolder objFolder = null;

But I just don't know how i create a new contact item!?
Can someone help me out?
 
Jörg,
Which version of Outlook? I find its easier (safer) with Outlook XP or
Outlook 2003 and the respective copy of the Outlook PIA.

You create a contact with the Outlook.Application.CreateItem method.

The following site provides a plethora of articles on using Outlook from
..NET

http://www.microeye.com/resources/res_outlookvsnet.htm

Hope this helps
Jay
 
Back
Top