ExcelHome技术论坛

 找回密码
 免费注册

QQ登录

只需一步,快速开始

快捷登录

搜索
EH技术汇-专业的职场技能充电站 妙哉!函数段子手趣味讲函数 Excel服务器-会Excel,做管理系统 效率神器,一键搞定繁琐工作
HR薪酬管理数字化实战 Excel 2021函数公式学习大典 Excel数据透视表实战秘技 打造核心竞争力的职场宝典
让更多数据处理,一键完成 数据工作者的案头书 免费直播课集锦 ExcelHome出品 - VBA代码宝免费下载
用ChatGPT与VBA一键搞定Excel WPS表格从入门到精通 Excel VBA经典代码实践指南
查看: 7444|回复: 7

Office2007系统初级协同工作配置

[复制链接]

TA的精华主题

TA的得分主题

发表于 2006-7-27 11:14 | 显示全部楼层 |阅读模式

2007 Microsoft Office System Primary Interop Assemblies
2007 Microsoft Office系统初级协同工作配置


Today we have the first of two guest posts from Patrick Smith, a program manager on the Office Programmability team.
今天,我们发表两篇来自Patrick Smith的客串帖子的第一篇,Patrick是Office编程组的项目经理。
Writing managed code against the 2007 Microsoft Office System products requires the use of an interop assembly.  Just as we did with Microsoft Office System 2003, we are providing primary interop assemblies with the new 2007 Office.  We’ve also made some changes to make the PIA’s a better experience with 2007.  Among the areas we’ve addressed are:
要在Microsoft Office 2007系统中编写代码的话,需要使用协同工作配置(interop assembly)。正如我们在Microsoft Office系统2003中所作的,我们会和新的Office 2007一起提供协同工作配置。我们也做了一些改进,使得PIA在2007里更好用。在这些领域里,我们解决了:
• Installation
• Redistribution
• Backward Compatibility

• 安装
• 重新分配
• 向后兼容性


Installation
安装


In Office 2003, the PIA’s were set as an Install on Demand feature within Office Setup.  This caused some headaches for the Office developer because you could never know for sure if the PIA’s were installed on the machine where you were installing your managed add-in.  With 2007, we will be changing the default feature state for the PIA’s to install locally.  While this will narrow the cases where the PIA’s are not installed on the machine, it doesn’t take care of 100% of the scenarios such as the .NET Framework being present on the machine during the Office installation.  To catch these other scenarios, we will also release a PIA Redistributable package.
在Office 2003里,PIA被设定为Office安装中,根据需要安装的功能。这会导致一些头疼的问题,因为Office开发者永远不肯定PIA是否安装在你安装加载宏的机子上。对于2007,我们将更改缺省功能为PIA安装在当地硬盘。但是,这会使没有安装PIA的机子使用受限制,这不能照顾到100%的情况,例如在Office安装中机子上已经有了.Net框架。为了照顾这些情形,我们也将发行一个PIA重新分配套餐。


Redistribution
重新分配


During the spring of 2005, we released a PIA redistributable for the 2003 Office PIA’s which now gives you the license to redistribute the PIA’s with your solution.  With 2007 Office System, we are releasing another redistributable containing the 2007 PIA’s and associated supporting files.  Now, by taking the redistributable package and shipping it with your project, you can ensure that the PIA’s are installed properly when you install your solution.
在2005年春季,我们为Office 2003发行了一个可重新分配的PIA,现在你有权限来重新分配你自己解决方案的PIA了。和Office 2007系统一起,我们将发行另外一个包含2007 PIA和连带支持文件的可重新分配的套餐。现在,通过使用可重新分配的套餐并且将其和你的工程装载在一起,那么你在安装你自己的解决方案时就能够确保PIA被正确地安装。


Backward Compatibility
向后兼容性


Backward Compatibility is an area we where have focused much attention.  We understand that as a platform, we must take steps to ensure that the managed solutions compiled against a 2003 PIA will continue to run properly against the 2007 version.  To do this, we’ve taken some great strides during development of the individual object model to ensure that the changes to the OM do not break runtime compatibility.  
向后兼容性是我们非常关注的领域。我们理解,作为一个平台,我们必须分几步来确保2003PIA下编译的解决方案将继续在2007版中正确运行。要实现这个,我们在个体对象模型的发展中已经做了几个大动作,以确保对象模型的变化不会导致运行时间兼容性崩溃。
In conjunction with the OM compatibility work we have done, we are also shipping publisher policy files for the Office PIA’s.  These will automatically redirect code that is compiled against the 2003 PIA to the new 2007 PIA so that existing code compiled against a 2003 PIA will automatically be redirected to the corresponding 2007 PIA.  As with any publisher policy, in cases where you may not want to redirect code to call the new PIA, you can override the policy by using the following tag in an application configuration file shipped with your managed assembly.
在与对象模型兼容性相关的工作中,我们也为PIA装载了Publisher策略文件。这将自动将在2003 PIA下编译的代码重定向到新的2007 PIA,以至于现存的在2003 PIA下编译的代码将自动被重定向到相应的2007 PIA。万一你在某处不希望重定向代码来调用新的PIA,因为有了Publisher策略,你可以在配置随带的应用软件参数配置中使用下述标识来忽略该策略。
<publisherPolicy apply="no"/>
For more info on publisher policy, see this link. 
有关publisher策略更多的信息请参考该链接。


Published Monday, June 19, 2006 8:00 AM by David Gainer
Filed Under: Programmability

注:本文翻译自http://blogs.msdn.com/excel ,原文作者为David Gainer(a Microsoft employee),Excel Home 授权转载。严禁任何人以任何形式转载,违者必究。

[此贴子已经被Kevin于2006-8-3 20:07:01编辑过]

TA的精华主题

TA的得分主题

发表于 2006-12-3 22:27 | 显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件       ★免费下载 ★       ★ 使用帮助
[em06][em06][em06]

TA的精华主题

TA的得分主题

发表于 2006-12-8 14:54 | 显示全部楼层

TA的精华主题

TA的得分主题

发表于 2007-1-13 09:41 | 显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件       ★免费下载 ★       ★ 使用帮助
支持翻译,支持技术

TA的精华主题

TA的得分主题

发表于 2007-3-17 15:01 | 显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件       ★免费下载 ★       ★ 使用帮助

支持共享新知识!

TA的精华主题

TA的得分主题

发表于 2007-5-14 08:20 | 显示全部楼层

TA的精华主题

TA的得分主题

发表于 2007-11-8 08:55 | 显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件       ★免费下载 ★       ★ 使用帮助

理解不了~~~

[em06][em06][em06]

TA的精华主题

TA的得分主题

发表于 2008-12-22 19:45 | 显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用  · 内置多项VBA编程加强工具       ★ 免费下载 ★      ★使用手册
确实理解不了,或者说一般用户不需要理解
您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

手机版|关于我们|联系我们|ExcelHome

GMT+8, 2024-11-25 14:57 , Processed in 0.033305 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 1999-2023 Wooffice Inc.

沪公网安备 31011702000001号 沪ICP备11019229号-2

本论坛言论纯属发表者个人意见,任何违反国家相关法律的言论,本站将协助国家相关部门追究发言者责任!     本站特聘法律顾问:李志群律师

快速回复 返回顶部 返回列表