Click here to Skip to main content
14,698,687 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Guys,

I am trying to build Outlook add-in which should work on any Outlook version (at least starting from 2003 onwards). In the auto-generated files I could only find the spot to change version number, but I am not sure how to include all. Also I supposed there should be more stuff in the background as each outlook version has some slight changes in the core.
I would appreciate if someone could direct me to the right direction.

I found this:[^]
But it's not for free and the stuff is quiet more then meets the eye. I only need a small functionality of it or something similar.

Thanks in advance!
RedDk 22-Oct-13 12:13pm
MK-Gii 23-Oct-13 7:04am
Thanks RedDk - the link for Outlook Object Model was very usefull, though it does not quiet answer the question - how to build the setup which work on multiple Outlook versions.
Thanks anyways!

1 solution

I got this solved. I ran this peace of code to identify the version and then under each section - run approprate code for each version (the differences depends of OL Objct Model differences, which is basically nothing to worry about)

Microsoft.Office.Interop.Outlook.Application oApp = new Application();
switch (oApp.Version.Substring(0, 2))
           case "10":
               //do stuff
           case "11":
               //do stuff
           case "12":
               //do stuff
           case "14":
               //do stuff
           case "15":
               //do stuff
               //usually a failure

Hope this gives a hand to someone :)
Maciej Los 12-Nov-13 17:39pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900