开发者

What Microsoft.Office.Interop.Outlook version works with Outlook 2003?

I'm creating a COM add-in for Outlook and I'm trying to target all 'still used' versions of Outlook: 2003, 2007, 2010. However, the add-in's UI (which is rather simple, a CommandBar) doesn开发者_如何学运维't display in Outlook 2003.

The version of the Interop.Outlook library I am using is version 12, which is the smallest one I can find when adding references in VS2010. I think that this version is a step beyond the Interop library for Outlook 2003...but I'm not sure.

Questions:

  1. Is my assumption correct? That using Interop.Outlook version 12.0 is beyond the Interop for Outlook 2003, and that I should revert to a smaller version (10.0 maybe?). This would explain why I can't retrieve Outlook 2003 object model and add some UI to it.

  2. How could I use the previous version if this is indeed the case (I cannot find it in the references list for VS2010)?

Thanks!


The associated version of interop assemblies for MS Office 2003 is 11.0, so you'll need to target that version.

Assuming you are using VSTO, in order for you to create a single VSTO addin that targets MS Office 2003, 2007 and 2010 you'll need to use VSTO 2005 SE. However this runtime VSTO version only works in Office 2010 x86, so if you also need to target x64 version of Office 2010 you're out of luck.

I know that you can target VSTO 2005 SE with Visual Studio 2008, but with Visual Studio 2010 I never tried it, so I'm not sure if it is possible.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜