高頓網(wǎng)校友情提示,*7重慶會(huì)計(jì)繼續(xù)教育網(wǎng)上總結(jié)信息Excel2007新知-Office2007系統(tǒng)初級(jí)協(xié)同工作配置等內(nèi)容公布如下:
  2007 Microsoft Office System Primary Interop Assemblies
  2007 Microsoft Office系統(tǒng)初級(jí)協(xié)同工作配置
  Today we have the first of two guest posts from Patrick Smith, a program manager on the Office Programmability team.
  今天,我們發(fā)表兩篇來自Patrick Smith的客串帖子的*9篇,Patrick是Office編程組的項(xiàng)目經(jīng)理。
  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系統(tǒng)中編寫代碼的話,需要使用協(xié)同工作配置(interop assembly)。正如我們?cè)贛icrosoft Office系統(tǒng)2003中所作的,我們會(huì)和新的Office 2007一起提供協(xié)同工作配置。我們也做了一些改進(jìn),使得PIA在2007里更好用。在這些領(lǐng)域里,我們解決了:   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被設(shè)定為Office安裝中,根據(jù)需要安裝的功能。這會(huì)導(dǎo)致一些頭疼的問題,因?yàn)镺ffice開發(fā)者永遠(yuǎn)不肯定PIA是否安裝在你安裝加載宏的機(jī)子上。對(duì)于2007,我們將更改缺省功能為PIA安裝在當(dāng)?shù)赜脖P。但是,這會(huì)使沒有安裝PIA的機(jī)子使用受限制,這不能照顧到100%的情況,例如在Office安裝中機(jī)子上已經(jīng)有了.Net框架。為了照顧這些情形,我們也將發(fā)行一個(gè)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年春季,我們?yōu)镺ffice 2003發(fā)行了一個(gè)可重新分配的PIA,現(xiàn)在你有權(quán)限來重新分配你自己解決方案的PIA了。和Office 2007系統(tǒng)一起,我們將發(fā)行另外一個(gè)包含2007 PIA和連帶支持文件的可重新分配的套餐?,F(xiàn)在,通過使用可重新分配的套餐并且將其和你的工程裝載在一起,那么你在安裝你自己的解決方案時(shí)就能夠確保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.
  向后兼容性是我們非常關(guān)注的領(lǐng)域。我們理解,作為一個(gè)平臺(tái),我們必須分幾步來確保2003PIA下編譯的解決方案將繼續(xù)在2007版中正確運(yùn)行。要實(shí)現(xiàn)這個(gè),我們?cè)趥€(gè)體對(duì)象模型的發(fā)展中已經(jīng)做了幾個(gè)大動(dòng)作,以確保對(duì)象模型的變化不會(huì)導(dǎo)致運(yùn)行時(shí)間兼容性崩潰。
  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.
  在與對(duì)象模型兼容性相關(guān)的工作中,我們也為PIA裝載了Publisher策略文件。這將自動(dòng)將在2003 PIA下編譯的代碼重定向到新的2007 PIA,以至于現(xiàn)存的在2003 PIA下編譯的代碼將自動(dòng)被重定向到相應(yīng)的2007 PIA。萬一你在某處不希望重定向代碼來調(diào)用新的PIA,因?yàn)橛辛薖ublisher策略,你可以在配置隨帶的應(yīng)用軟件參數(shù)配置中使用下述標(biāo)識(shí)來忽略該策略。
 
     
  掃一掃微信,學(xué)習(xí)實(shí)務(wù)技巧
   
  高頓網(wǎng)校特別提醒:已經(jīng)報(bào)名2014年財(cái)會(huì)考試的考生可按照復(fù)習(xí)計(jì)劃有效進(jìn)行!另外,高頓網(wǎng)校2014年財(cái)會(huì)考試高清課程已經(jīng)開通,通過針對(duì)性地講解、訓(xùn)練、答疑、???,對(duì)學(xué)習(xí)過程進(jìn)行全程跟蹤、分析、指導(dǎo),可以幫助考生全面提升備考效果。