如何同时处理多个版本的Office? [英] How to handle multiple version of office simultaneously?

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

问题描述


对于这种情况有什么好的参考资料吗?
如果打开了Word或PPT的多个版本,则代码应能够处理文档之间的自动化,而不管它们的版本如何.
我尝试了一次只能使用一个版本的互操作程序集.但是如果有2003、2007、2010的Word文档被打开,程序应该能够为不同版本创建对象.但是,我一次只能在ROT中注册一个版本的MS Word.
我在许多论坛中都问过很多与此有关的问题,但是没有回音让我继续前进.至少有人可以告诉我为什么不可能实现多个版本的自动化?
请注意:当我说多个版本时,并不是说应用程序在不同时间与不同版本的MS Office的兼容性.

Hi,
Is there any good reference available for this kind of scenario?
If multiple version of Word or PPT opened, code should able to handle the automation between the documents irrespective of their version.
I tried interop assemblies which work with one version at a time. But in case there is 2003, 2007, 2010 word documents are opened program should able to create the object for different version. But, in ROT at a time only one version of MS Word will register, that’s what I read.
I have asked many questions regarding this in many forums, but no replies make me o go ahead. At least somebody could tell me why multiple version of automation not possible?
Please note: When I am saying multiple version I am not saying about compatibility of application with different version of MS office in different time.

推荐答案

我不清楚您到底想完成什么,但是就去了.

如果这是内部使用的公司应用程序,则默认情况下,IT管理员可以将Office应用程序配置为将文档另存为与Office 97-2003兼容的格式. 2003互操作程序通常可与Office 2007一起使用.(虽然不确定2010),但是如果应用程序是在公司外部使用则可能很难控制.

关于用于多个版本的互操作,请查看此链接,该链接似乎可以解决您的问题:
http://social.msdn.microsoft.com /Forums/zh-CN/vsto/thread/2b8dd0b3-a0b4-429e-ba64-4de6fdb45b6d/ [ http://msdn.microsoft.com/en-us /library/dww0e04a.aspx [ ^ ]
I am not real clear on what exactly it is you are trying to accomplish, but here goes.

If this is a company application used internally, the IT Admin can configure the Office application to save documents as Office 97-2003 compatible format by default. The 2003 interops generally work with office 2007. (Not sure about 2010 though) However it can be difficult to control if the application is used outside your company.

Regarding interop for multiple versions have a look at this link which appears to address your question:
http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/2b8dd0b3-a0b4-429e-ba64-4de6fdb45b6d/[^]

Regards

Another link for you to look at: http://msdn.microsoft.com/en-us/library/dww0e04a.aspx[^]


这篇关于如何同时处理多个版本的Office?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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