使用多个MS Office版本 [英] Working with multiple MS office version

查看:100
本文介绍了使用多个MS Office版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,
Google搜索了一些示例代码,这些示例代码可与MS Office应用程序的不同版本进行交互.找不到有用的东西.
我需要使用Word和ppt的2003、2007、2010版本.任何人都可以帮助我在这方面投入一些资源.具体来说,获取特定版本的实例,在不同版本的文档之间移动数据等.
在此先感谢您.

Hi friends,
Googled for some sample code which interact with different versions of MS office applications. Not able to find something helpful.
I need to work with 2003, 2007, 2010 version of word and ppt. Could anybody help me to ive some resource on this. Specifically, getting specific versions instance, moving data between different versions document etc.
Thanks in advance.

推荐答案

嗨普拉萨德,

如果我确实要回答您的问题,那么您将拥有一个可以处理word和PPt文件的应用程序.

好吧,如果是这样,您必须先引用这些应用程序的互操作程序集,然后再引用相应应用程序的对象模型.在大多数情况下,您在机器上可以找到的互操作程序集将是所安装Office的匹配版本.例如,Office 2003的版本将为11,依此类推.

Microsoft声称Office应用程序是向后兼容的,因此,如果您具有Office 2003的程序集,则理想情况下,它应适用于更高版本的2007和更高版本. 2010.当然,您不会获得新功能,但目标定位应该没有任何问题.

我找到了一篇不错的文章 http://devcity.net/Articles/163/1/article.aspx [ ^ ]

希望这会有所帮助.

谢谢,
Hemant
Hi Prasad,

If i''m getting your question exactly you''ve an application in which you manipulate word and PPt files.

Well if that is the case you must be referring interop assemblies of these application and then the object model of respective application. The interop assembly you will find on your machine in most cases will be the matching version of the office installed. For example Office 2003 the version will be 11 and so on.

Microsoft claims that office applications are backward compatible so if you have office 2003''s assembly, ideally it should work for higher versions 2007 & 2010. Certainly you won''t get new features but you shouldn''t have any problem for what you are targeting.

i''ve found a nice article http://devcity.net/Articles/163/1/article.aspx[^]

Hope this will help.

Thanks,
Hemant


这篇关于使用多个MS Office版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆