How to make my Outlook Addin support Office XP and Office 2003

M

Mita Garg

Hi All,

I have done the Addin in vb6, compiled it with office 2000 and that
works for all the versions. But in .Net ?????

I am trying to develop an Outlook Addin in C#. I have downloaded the
PIA for the OfficeXP.
And also in my porject using the Add Reference I have added the
reference. To my understanding this will not work with Office 2003.

I read about the Office 2003 PIA. You can get them when you install
Office 2003 itself. But what i don't understand is, how do i add
reference to Office 2003 PIA when i am already referencing it to use
Office xp PIA using Add Reference in the Project.

Well, what should I do to support it for Office 2003. Do I need to
compile it for different versions (which means having two machines
setup with two different versions of Outlook) or there is some other
way around which I don't know.

Any code sample for Outlook Addin in .net which supports both XP and
2003 will be really appreciated.


Regards Mita
 
M

Mark Bower [MSFT]

There is some information here: http://support.microsoft.com/?id=840585

You are right, you would need to compile two different versions: One for
each version of Outlook you plan to support.
To make maintenance of your code easier you would want to create some form
of abstraction layer between your business logic and the interfaces provided
by the XP and 2003 PIAs. You could also investigate using conditional
compilation techniques.

--
Mark Bower
Microsoft
http://blogs.msdn.com/bowerm

This post is provided 'as-is' without warranty and confers no rights.
 

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