How can I add new Outlook contact using C# or VB.NET?

Add-in Express™ Support Service
That's what is more important than anything else

How can I add new Outlook contact using C# or VB.NET?
 
Oliver Degnan




Posts: 54
Joined: 2005-02-03
I need to find a way to add a new contact to the Outlook contacts in C# or VB.NET. I am using the Add-in Express.NET.

Any help is REALLY APPRECIATED!!

Oliver
Posted 03 Feb, 2005 14:01:35 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi, Oliver.

Try the following code:

private void adxCommandBarButton1_Click(object sender)
{
Outlook._ContactItem contact =
OutlookApp.CreateItem(Outlook.OlItemType.olContactItem) as Outlook._ContactItem;
contact.FullName = "John Smith";
contact.Save();
contact.Display(false);
}
Posted 04 Feb, 2005 02:28:42 Top
Guest


Guest


Excellent. Thank you.
Posted 04 Feb, 2005 09:22:28 Top