现在的位置: 首页 > 综合 > 正文

VSTO开发中VS2010和Office 2003的问题

2011年09月09日 ⁄ 综合 ⁄ 共 1227字 ⁄ 字号 评论关闭

由于工具升级到了VS2010,以前的一个基于VSTO的WORD插件在新的环境下遇到了问题,VS2010只支持Office 2007和2010版本。
通过分析和参考官方资料明确:
1、Office 2003的插件只能是VS2005/2008下开发,部署时使用这个版本的VSTO Runtime
2、如果使用VS2010开发Office2003的应用,不能使用VSTO,可以使用Extensibility建立插件,或者使用COM Shim Wizards辅助托管程序的开发,不过比VSTO的形式跟定复杂了一些。
综合可见Office 2003正式可以正式淘汰了,那些基于Office 2003的应用后续版本使用新版的Office吧。
如果兼容旧的版本而且使用VSTO,那只能两个IDE(VS2008 VS2010)同时使用了。

参考资料:
Running Solutions in Different Versions of Microsoft Office
http://msdn.microsoft.com/en-us/library/bb772080.aspx
Does VSTO 2010 support OfficeXP Add-in ?
http://social.msdn.microsoft.com/Forums/en/vsto/thread/9d32a927-764b-454d-a85c-e1b595fe6e51

VS 2005 and VSTO 2005 (For Office 2003) Up grate to VS 2010 what about VSTO 2005 will it work
http://social.msdn.microsoft.com/Forums/en/vsto/thread/54406b11-f314-4d85-8195-9714206811c4

VS2010使用Extensibility建立插件
http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/5ddcf190-1b08-4f6b-99ff-3b9de0061bce/

COM Shim Wizards for VS 2010
http://blogs.msdn.com/b/mshneer/archive/2010/03/19/com-shim-wizards-for-vs-2010.aspx
Isolating Office Extensions with the COM Shim Wizard [Office 2003]
http://msdn.microsoft.com/en-us/library/aa159894(office.11).aspx
Isolating Microsoft Office Extensions with the COM Shim Wizard Version 2.3.1 [Office 2007]
http://msdn.microsoft.com/en-us/library/bb508939.aspx

抱歉!评论已关闭.