Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am working on a project in .Net which is an addin to office. The issue is that the solution needs to compile addins for Office 2003, 2007 and 2010 while sharing the same business logic between these.
What is the best way to accomplish this and still have a maintainable solution? Ideally I would like to NOT use different development machines for the various office versions, and use only one version of Visual Studio (2010).
Posted
Updated 1-Jun-10 18:11pm
v2

1 solution

A long, long time ago, in a galaxy far, far away I think we solved that by looking into the registry which office was installed, bind the corresponding object and call the methods that way. You'll need to test this thouroughly though, because not all methods and objects will be the same between versions.

I propose to start testing with different versions by writing quick and dirty test applications and then move on to a good design for the real application.

hope this helps.
 
Share this answer
 

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