C# Application - Outlook 2003 - Public Folders

  • Thread starter Thread starter Ames111
  • Start date Start date
A

Ames111

Hi

Im quite new to C# but have some experience in programming outlook with
VB6.

i am creating an application in C# that will connect to outlook and
perform some simple tasks.

One of these tasks is to create and open a custom task.

This task is located in a public folder:

Public Folders / All public folders / operations / 4Projects /
3.Support / Ames / Tickets

so tickets is a task folder, that uses a custom task form.

In vb6 it was quite simple to set a folder to the Tickets folder then
perform a

item = folder.items.add
item.display

to show the task, but how do i do this in c#? I mean i cant even get as
far as locating the public folder?

i have added the reference "using microsoft.office.interop"

but im terribley stuck and there doesnt seem to be much around on this
 
I'd suggest that you work through the basics of programming Outlook with C# starting with the articles listed at http://www.outlookcode.com/d/index.htm#dotnet. The object model doesn't change just because you're using a different language. You still need to perform basic tasks like walking the folder hierarchy to get a public folder, just as you would in VB6.

Note that you need to add a reference to Outlook, not just Office.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top