当前位置:首页 > 办公设计 > Office教程 > Office2007系统初级协同工作配置

Office2007系统初级协同工作配置

1年前 (2025-05-24)Office教程1870

译者:hxhgxy   来源:http://blogs.msdn.com/excel
发表于:2006年7月7日

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 授权转载。严禁任何人以任何形式转载,违者必究。

扫描二维码推送至手机访问。

欢迎转载或分享本篇文章。

本文链接:https://www.jcba123.com/article/1132

分享给朋友:

“Office2007系统初级协同工作配置” 的相关文章

流程图怎么做?用Word制作流程图超方便!

流程图怎么做?用Word制作流程图超方便!

还在为做流程图而发愁?不知道用什么软件制作,更不知道从何下手?其实,用Word做流程图还是蛮方便的,制作起来也非常简单。今天,易老师就来手把手的教大家用Word画流程图。     Word新建画布 用Word在绘制流程图之前,我们要先新建画布,进入...

将多列的区域或数组合并成一列,就用TOCOL函数

将多列的区域或数组合并成一列,就用TOCOL函数

今天分享TOCOL函数的几个典型应用。 这个函数目前可以在Excel 365和最新的WPS表格中使用,作用是将多列的区域或数组转换为单列。函数用法为: =TOCOL(要转换的数组或引用, [是否忽略指定类型的值], [按行/列扫描]) 其中第二参数为0或者省略该参数时,表示保留所有值。为1表示忽略空...

数据可视化PPT图表制作

数据可视化PPT图表制作

第一步:在PPT工具栏中选择“插入”,然后插入一个圆环和6个细长矩形,设置它们的填充色为深蓝色(RGB: 0,9,66)。将细长矩形均匀地分布在圆环周围。选中圆环和所有矩形,然后在工具栏中选择“形状格式” -> “合并形状” -> “拆分”,并移除多余的形状部分,基础的表格样式就...

科技风格背景PPT目录设计教程

科技风格背景PPT目录设计教程

首先,您可以在站长素材网站(https://sc.chinaz.com/)上搜寻并下载科技类的图片素材和一些装饰元素。   第一步:打开PPT软件,新建一个空白演示文稿。将蓝色图片插入幻灯片内页,然后将其他两个素材进行排版,以得到初步的科技风背景(如图1-1)。接着插入...

数字艺术风社交媒体图像PPT指南

数字艺术风社交媒体图像PPT指南

首先,在站长素材网站(https://sc.chinaz.com/)搜索并下载喜欢的图片。 第一步:打开PPT软件,创建一个空白演示文稿,新建幻灯片。点击工具栏,插入——文本框——输入数字(建议选择相对较粗的字体)(如图1-1),接着插入图片到幻灯片内页(如图1-2),置于数字底层,放置合适位...

创意错位字体设计PPT教程

创意错位字体设计PPT教程

第一步:插入文本框,输入文字,再将文字内容同等复制三个,并且调整为不同的颜色,分别为白色、蓝色(RGB为1,156,233)、红色(RGB为252,32,40)。将三个不同颜色的文本框错位放置,复制一份备用。 第二步:插入一个矩形,选中矩形点击复制,先选中白色文本框与矩形,点击工具栏的形状...

发表评论

访客

看不清,换一张

◎欢迎参与讨论,请在这里发表您的看法和观点。