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.

P.S.:
I found this:
http://www.add-in-express.com[^]
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!
Posted
Comments
RedDk 22-Oct-13 12:13pm
   
http://www.codeproject.com/search.aspx?q=Outlook+2007+development&doctypeid=1%3b2%3b3%3b13%3b9%3b10%3b14
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
               break;
           case "11":
               //do stuff
               break;
           case "12":
               //do stuff
               break;
           case "14":
               //do stuff
               break;
           case "15":
               //do stuff
               break;
           default:
               //usually a failure
               break;
            }


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

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