Geeks With Blogs
Random Musing Putting it together one piece at a time...
It took be a while before I realise that while Office 2003 and Office 2007 can be installed side by side, and that it doesn't really matter which version is installed first, it is an entirely different story when it comes to developing Office solutions using VSTO on a development environment with both version installed. In a nutshell, it is not supported and highly unrecommended to have both versions installed when developing using VSTO. The main reason is due to the 2007 Primary Interop Assemblies overwriting the 2003 PIAs. Even though it might look as if everything works as expected, you are really using the Office 2007 PIAs when launching a Excel 2003 VSTO project. If you're lucky you might catch this if you open an excel worksheet in Designer mode within VS and VS loads 2007 Excel instead of 2003. Now this is dangerous as it's highly unpredictable what will happen when you package your 'finished' product and deploy into another client machine. The solution is really to have only 1 version installed in your development environment at all time. Painful, yes, unfortunately this seems to be the only clean way to ensure that your development does not go uncharted territories. For more information on this, you can look at Andrew Whitechapel's here and here Posted on Thursday, February 21, 2008 9:58 PM .Net , Office Applications | Back to top

Comments on this post: VSTO not supporting side-by-side Office installations

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Nestor | Powered by: