By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,725 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

Outlook Contacts with C#

P: n/a
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?
Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

"Jörg Schroeder" <jo*************@uni-essen.de> wrote in message
news:ui**************@TK2MSFTNGP12.phx.gbl...
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?

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.