简体   繁体   English

如果我为Office 2007编写一个加载项,它是否适用于2010年,2013年?

[英]If I write an add-in for office 2007 will it work for 2010, 2013?

I am currently in the process of re-writing some VBA macros that were written for office 2003. I was wondering if I wrote a C# add-in for 2007, if it would work for 2010 or maybe even 2013. Or if I wrote them for 2010 if they would work for 2007 and 2013 as well. 我目前正在重写为Office 2003编写的一些VBA宏。我想知道我是否为2007年编写了一个C#插件,如果它可以在2010年或甚至2013年使用。或者如果我写它们2010年,如果他们也将在2007年和2013年工作。 I currently have access to 2007 but I could get access to 2010 if need be, no 2013 yet. 我目前可以访问2007年,但如果需要,我可以访问2010年,还有2013年。

So, basically, how much does the version of office affect the plugins? 那么,基本上,办公室的版本对插件有多大影响?

If you use Visual Studio Tools for Office 2010 (VSTO 4.0) then it will compatible for Office 2007 ,Office 2010 and with Office 2013 .If you use earlier version other than the above then you can use that only for particular office versions only.As a example VSTO 3.0 only supports office 2003 and 2007 as shown below table. 如果您使用Office 2010的Visual Studio工具(VSTO 4.0) ,它将兼容Office 2007 ,Office 2010 and with Office 2013 2013.如果您使用上述以外的早期版本,那么您只能将其用于特定的办公室版本。示例VSTO 3.0仅支持office 2003 and 2007 ,如下表所示。

For more information check this out Visual Studio Tools for Office and Visual Studio 2010 Tools for Office Runtime 有关详细信息,请查看用于Office的 Visual Studio工具和用于Office运行时的Visual Studio 2010工具

compatibility Shows like below: 兼容性如下所示:

在此输入图像描述

I hope this will help to you. 我希望这会对你有所帮助。

you can take a look at Netoffice , a wrapper for MS Office that enables you to create Addins for all supported versions of MS Office. 您可以查看Netoffice ,它是MS Office的包装器,可以为所有受支持的MS Office版本创建Addins。 You don't need VSTO and you can check within your own code which version of Office your AddIn is running in. 您不需要VSTO,您可以在自己的代码中检查您的AddIn运行的Office版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM