Accessing Outlook from .NET

Hi,

Can anyone tell me how I can access the functionality in Outlook from .NET?

I'm looking to synchronise Outlook contacts and tasks with a bespoke task management system we've been writing, and I can't find anything tangible on tinternet.

Cheers,

Ged
gedmattAsked:
Who is Participating?
 
Ravi SinghConnect With a Mentor Senior Software EngineerCommented:
Hi, your probably after the Outlook Object Model:
http://msdn2.microsoft.com/en-us/library/ms268893(VS.80).aspx

Specifically you want to take a look at the namespaces:
Outlook.TaskItem
Outlook.ContactItem

To access these namespaces, in Visual Studio go to Project | Add Reference | COM tab and double click on "Microsoft Outlook 11.0 Object Library".

You can also find some sample code snippets that use the classes in the library here:
http://msdn2.microsoft.com/en-us/library/ms268731(VS.80).aspx (See under Outlook Contacts section)

Hope this helps!
0
 
gedmattAuthor Commented:
Looks like just what I'm after!

Cheers,

Ged
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.