Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use VS 2012 to create an Office 2007 add-in?

This would suggest not: http://msdn.microsoft.com/en-us/library/ee519072(v=vs.110).aspx

But, but... really?

Office 2007 is still ubiquitous - surely they've not dropped support for it already? I need to support it, and it seems like this would mean I can't use VS2012.

Or maybe this restriction only applies to the RC? (Please). Or perhaps it creates add-ins that are targetted at 2010 but can still run on 2007? (Clutching at straws).

Tell me it ain't so...

like image 483
Gary McGill Avatar asked Jul 22 '12 21:07

Gary McGill


1 Answers

You can create an Office addin that targets 2010, but that still works in Office 2007. The trick is that you need to be aware of what interop types and events are present in 2007 versus 2010. If you try accessing an event or class member that doesn't exist in 2007 you will have issues.

Visual Studio 2012 only includes Office 2010 project templates. Another annoyance/limitation is that they eliminated support of Setup Projects which is how we have been releasing our plugin. Setup Projects have been replaced by InstallShield Limited Edition (ISLE).

like image 69
SliverNinja - MSFT Avatar answered Sep 21 '22 01:09

SliverNinja - MSFT