Outlook automation using managed code

M

Max

Hi,

I would like to have a button and a combo box with options to select various versions of Microsoft Outlook: 2002, 2003.
The user selects the email client and clicks the button. The only things happening will be: a new email is created and some text is
placed in the body, then the email window is displayed. The user can close the window or select some recipients and send the
message. I would like some info on how to do this correctly. Is the best way to do this using early binding or late binding?

If I work with early binding, then what is the correct way of doing this? Right now I installed the Office 2003 PIAs from the link
below:

http://www.microsoft.com/downloads/...3A-AC14-4125-8BA0-D36D67E0F4AD&displaylang=en

and I added a reference to Microsoft Outlook 11.0 Object Library to my project. Was this the right way to do it? Is installing the
above the same as getting the Office 2003 PIAs through the Office 2003 setup feature? I am beginning to think that it is not and I
have to manually remove these from the GAC and do a repair and get them through Office 2003.

For what I need to do which is just open an email and put some text in it then let the user continue, will the 2003 version of
Outlook PIA be enough to support both MS Outlook 2002 and 2003 or do I have to rely on late binding? The setup project is adding
dependencies to the dlls used and they go with the application. Is this the right way to do it or do I need to ask the user to
download the PIA's from the link above as well?

Thanks,
Max
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top