VSTO 2003-2010 add-in compatibility

后端 未结 3 1072
野趣味
野趣味 2021-01-03 06:50

I want to create an Office add-in compatible with Office 2003, 2007 and 2010. VS2008 allows for add-in 2003/2007 creation while VS2010 allows 2007/2010. I have both installe

3条回答
  •  我在风中等你
    2021-01-03 07:22

    Actually I'm developing a Shared Add-In for Office using Visual Studio 2010, and I had same requirement for Office versions. And it actually loads in those offices (event though Microsoft says VS 2010 plugin isn't compatible with Office 2003). I check version using Application.Version. If it's < 12 then I use CommandBars to programatically build menu. Otherwise, I use the ribbon extension (load from xml) to build menu.

    UPDATE You'll have to keep in mind, that some features aren't available in Office 2003. For example TextRange2.

提交回复
热议问题