国产午夜成人免费看片无遮挡_日本免费xxxx色视频_免费人成网上在线观看_黄网址在线永久免费观看

當前位置:雨林木風下載站 > 技術開發教程 > 詳細頁面

Programming MS Office 2000 Web Components首章第3節

Programming MS Office 2000 Web Components首章第3節

更新時間:2022-05-01 文章作者:未知 信息來源:網絡 閱讀次數:

哪里可以使用這些組件?



既然Office Web Components都是COM控件,您會很自然的希望它們能夠在任何自稱是COM控件容器的環境中工作。然而,理論和現實不總是一致的,尤其在軟件世界里。微軟公司創造了許多能夠包含控件的環境(我們小組脫口就能說出了16個),而別的公司創造了許多其它的環境。



為了避免Office的測試小組發狂,我們針對不同的容器,進行不同的級別的Office Web Components測試。首先,我們挑選出那些我們認為人們使用的最多的容器,進行了充分的測試。然后,我們在不常使用的容器中進行了基本的和特別的測試。最后,我們將一些容器組織起來,形成了一個”沒有經過正式的測試,但是當使用時不會產生災難性后果”的范圍。表1-1顯示了這個范圍中的容器。

表 1-1. 經過測試的容器.

Container
Test Coverage

Microsoft Internet Explorer 5.0
Full

Microsoft Internet Explorer 4.01
Full

Microsoft Internet Explorer 3.x
Not supported

Microsoft Visual Basic 6.0
Full

Microsoft Visual Basic 5.0
Basic

Microsoft Visual InterDev
Basic

Microsoft Access Forms
Basic

Microsoft Office UserForms
Basic

Microsoft FrontPage 99
Full

Microsoft FrontPage 98
Basic

Microsoft Access 2000 Data Access Page Designer
Full

Microsoft Script Editor
Full

Microsoft Word 2000
Basic

Microsoft Excel 2000
Basic

Microsoft PowerPoint 2000
Basic

Microsoft Outlook 2000
Basic

Microsoft Visual C++/MFC Projects
None

Microsoft Visual J++
None





還有,要注意在不同的容器中,控件的設計時行為很不相同。因為Office Web Components是相當復雜的控件,常常需要在控件內部選擇元素(例如電子表格中的單元,數據透視報表中的透視字段,或圖表中的一系列數據點),以及格式化或處理這些元素。為了能夠實現這個功能,在允許控件界面激活的容器中,控件會界面激活,這意味著這些控件會響應鼠標和鍵盤事件。在設計模式中針對控件所做的任何修改,都會在運行期間重載控件時和文檔或窗體一起被保留,這就使得控件在被重置時顯得和您保存它們時完全一樣。一些容器在您點擊控件時立刻使控件界面激活。而另一些容器則要求雙擊控件。還有其它的一些容器要求您通過兩次單擊來激活這些控件。這些行為完全由容器所決定。因此請參考容器的文檔,以了解容器如何在設計階段處理COM控件。

請注意上述這些并不會影響控件運行期間的行為。在運行期間,所有的容器在加載了控件之后就會使控件界面激活。但是一些環境,例如Office文檔,因為您總是在編輯當前加載的文檔,所以永遠也不會進入運行狀態。而Internet Exlporer,Visual Basic,Visual C++,Access Forms和Office用戶界面都具有運行時模式,期間控件會立刻被激活。



數據存取頁和Internet Explorer 5

如果您閱讀任何Access2000的文檔,您很可能看到一些聲明,告訴您只能在Internet Explorer5或更高版本中瀏覽數據存取頁。雖然這是真的,但是這個聲明一般并不適用于Office Web Components。這些組件可以在Internet Explorer 4.01及以上版本中使用,然而它們不能在任何較早版本中使用(4.0,3.x,2.x等等)。這個版本要求也適用于任何使用Excel2000創建的交互內容(創建過程使用Office Web Components),也適用于使用這些組件開發出的定制解決方案。數據存取頁需要Internet Explorer5中一些特殊的特性,這就是為什么它們只能在這個環境中運行。然而,Office Web Components本身可以很好的在上面所列的那些經過測試的容器中使用。



在服務器上使用Office Web Components

前文提到過,Office Web Components即能夠以控件的形式駐留在窗體,文檔或網頁中,也可以以無用戶界面的對象的形式駐留在內存中。每個控件都提供一個屬性或者方法以返回控件當前內容的靜態表現形式。圖表和數據透視表控件可以創建它們內容的GIF圖形,而電子表格控件可以返回一個HTML的表格片斷或者一個完整地頁面,這個片斷或者頁面可以在任何與HTML3.2兼容的瀏覽器中顯示。所有這些都意味這您可以在web服務器上使用這些控件,實現服務器端的圖表圖形和數據透視報表的生成,或實現服務器端的電子表格模型重算功能。我會在本書第二部分演示一些這類技巧。



除了討論如何在服務器上使用這些控件之外,我們也會在本書后部考察許多更精細的問題,例如性能,可伸縮性和可靠性。



部 署

基于web的解決方案最具吸引力的方面之一就是不需要應用程序的顯示安裝。需要做的事情要么是以腳本的形式在頁面中編程,要么是以applets或者com控件的形式自動下載。Office Web Components通過使用Internet Explorer的codebase特征,可以實現無需安裝的部署和自動的更新機制。這些組件也包括一個成熟的web安裝工具,使得下載的過程十分有意思。還有,OWC在技術上并不依賴于Office 2000,因此它能夠和Office97環境并存,也能在沒有安裝任何Office軟件的機器上使用。



在第12章會涉及到關于部署任務的各方面,以及如何建立自動部署OWC的解決方案。

Netscape Navigator怎么樣?



當我在討論會和其它一些用戶聚會上講述Office Web Components時,總有人問這個問題:“這些組件可以在Netscape Navigator中運行嗎?”答案是明確的“不行,”但是,這里有一些需要說明的地方。

Netscape Navigator 4.5本身并不支持COM控件,因此如果沒有安裝任何插件,Office Web Components甚至不能被Netscape navigaotor加載。然而,一個名為NCompass Labs的公司為Netscape Navigator開發了一個控件,使得Netscape Navigator可以在web頁面中控制COM控件。那么,如果您安裝了這個插件,您就能夠在Netscape Navigator中使用這些組件了嗎?答案是“看情況”,這里又有一些需要說明的。



您可能使用OWC建立許多包含了組件間通訊的解決方案――例如,綁定到一個數據透視表或者電子表格上的圖表,或是綁定到頁面上其它元素屬性上的一個電子表格單元。這些解決方案需要Internet Explorer提供的功能的支持。而即使是安裝了NCompass插件的Netscape Navigator也不能提供這些功能,因此這些解決方案完全不能在Netscape Navigator中工作。



使用單個的組件或是使用相互間不通訊的多個組件的解決方案,是可能在Netscape Navigator中成功運行的。然而,這是我們的測試小組沒有研究的容器之一,因此我不能保證它會成功。



您應該還記得,無論如何,由服務器上的控件產生的靜態內容可以在Netscape Navigator和Internet Explorer中顯示。因此如果您的運行環境需要支持兩個瀏覽器,您可能會對在web server上使用這些組件的方法以及展示了實現這些功能的技術的解決方案感興趣。







附錄:英文原文



Where Can You Use the Components?



Since the Office Web Components are COM controls, you'd naturally expect them to work in any environment that called itself a COM control container. However, theory and reality don't always match up, especially in the world of software. Microsoft makes many environments that can contain controls (16 that our team could recall off the top of our heads), and various other companies create many others.

To keep the Office test team from going mad, we tested the Office Web Components at different levels in different containers. First, we picked the containers we thought people would use most and performed full test passes on them. We then performed basic, ad hoc testing on the containers used less often. And finally, we grouped a few containers into the "not formally tested but doesn't cause a nuclear meltdown when tried" category. Table 1-1 shows which containers fell into what category.

Table 1-1. Tested containers.

Container
Test Coverage

Microsoft Internet Explorer 5.0
Full

Microsoft Internet Explorer 4.01
Full

Microsoft Internet Explorer 3.x
Not supported

Microsoft Visual Basic 6.0
Full

Microsoft Visual Basic 5.0
Basic

Microsoft Visual InterDev
Basic

Microsoft Access Forms
Basic

Microsoft Office UserForms
Basic

Microsoft FrontPage 99
Full

Microsoft FrontPage 98
Basic

Microsoft Access 2000 Data Access Page Designer
Full

Microsoft Script Editor
Full

Microsoft Word 2000
Basic

Microsoft Excel 2000
Basic

Microsoft PowerPoint 2000
Basic

Microsoft Outlook 2000
Basic

Microsoft Visual C++/MFC Projects
None

Microsoft Visual J++
None



Also note that the design-time activation of the controls varies quite a bit from container to container. Since the Office Web Components are fairly complex controls, it is often necessary to select elements within a control (such as a cell in a spreadsheet, a pivot field in a PivotTable report, or a series of data points in a chart) and format or perform operations on them. To enable this functionality, the controls will become UI active in containers that allow this, meaning they will respond to mouse and keyboard events. Any changes made to the controls in design mode will persist with the document or form when it is reloaded at runtime, resetting the controls to look exactly as they did when you saved them. Some containers make the controls UI active as soon as you click them. Others require that you double-click the control before it becomes UI active. Still other containers require you to single-click them twice to activate them. This behavior is entirely determined by the container, so refer to the container's documentation to see how it deals with COM controls at design time.

Note that this does not affect a control's runtime behavior. At runtime, all containers make the controls UI active after loading them. But some environments, such as Office documents, never get into a runtime state because you are always editing the document that's currently loaded. Internet Explorer, Visual Basic, Visual C++, Access Forms, and Office UserForms all have a runtime mode in which the controls are immediately active.

Data Access Pages and Internet Explorer 5



If you read any of the Access 2000 documentation, you will likely see statements that say you can view data access pages only in Internet Explorer version 5 and above. Although true, that statement does not apply to the Office Web Components in general. The components will function in Internet Explorer 4.01 and above, though they won't function in any earlier versions (4.0, 3.x, 2.x, and so on). This applies to any interactive content created with Excel 2000 (which uses the Office Web Components) and to custom solutions developed using the components.

Data access pages rely on a few specific features in Internet Explorer 5, which is why they only run in that environment. However, the Office Web Components themselves can run quite happily in the tested containers listed earlier.

Using the Office Web Components on a Server



As mentioned before, the Office Web Components were designed to run both as controls "sited" within a form, document, or web page, and as objects in memory with no user interface. Each of the controls exposes a property or method that returns a static representation of its current content. The Chart and PivotTable controls can create GIF images of their content, and the Spreadsheet control can return an HTML table fragment or full page that can be rendered by any browser that's compatible with HTML 3.2. All of this means you can use the components on a web server to perform server-side generation of chart images and PivotTable reports or server-side recalculation of a spreadsheet model. I'll demonstrate a few of these techniques in Part II of the book.

Besides discussing the how-to of using the components on the server, we'll examine a number of more subtle issues related to performance, scalability, and reliability later in the book.

Deployment



One of the more attractive aspects of web-based solutions is that they don't require explicit setup of an application. Anything needed is either included with the web page in the form of scripts or is automatically downloaded as applets or COM controls. The Office Web Components enable a no-install deployment and automatic upgrade mechanism by using the codebase feature of Internet Explorer. The components also include a sophisticated web installing control that makes the download experience much more attractive. Furthermore, OWC has no technological dependency on Office 2000, so it can coexist in an Office 97 environment or be used on a machine that doesn't have any other part of Office installed.

I'll cover all the aspects of deployment and how you can build your solutions to automatically deploy OWC in Chapter 12.

What About Netscape Navigator?



When I talk about the Office Web Components at conferences or other customer gatherings, invariably someone asks the question, "Do these run in Netscape Navigator?" The answer is essentially "no," but it has a few caveats.

Netscape Navigator 4.5 does not natively support COM controls, so without any plug-ins, the Office Web Components won't even be loaded by Netscape Navigator. However, a company called NCompass Labs, Inc. makes a plug-in for Netscape Navigator that can host COM controls in a web page. So if you installed this plug-in, could you use the components in Netscape Navigator? The answer is "it depends" and, again, has a few caveats.

Many solutions you might build with OWC involve communication between the components—for instance, a chart bound to a PivotTable or spreadsheet, or a spreadsheet cell bound to the property of another element on the page. These solutions depend on functionality provided in Internet Explorer that isn't present in Netscape Navigator even with the NCompass plug-in, so they simply won't work in Netscape Navigator.

Using a single component or multiple components that do not communicate with one another is possible in Netscape Navigator. However, this is one of the containers that our test team did not research, so I can't guarantee that it will work.

You should always remember, however, that static content generated by the controls on the server can be rendered in either Netscape Navigator or Internet Explorer. So if your runtime environment requires that you support both browsers, you probably will be more interested in using the components on your web server and in the solutions that show the techniques that d

溫馨提示:喜歡本站的話,請收藏一下本站!

本類教程下載

系統下載排行

国产午夜成人免费看片无遮挡_日本免费xxxx色视频_免费人成网上在线观看_黄网址在线永久免费观看

  • <label id="pxtpz"><meter id="pxtpz"></meter></label>
      1. <span id="pxtpz"><optgroup id="pxtpz"></optgroup></span>

        亚洲情趣在线观看| 午夜精品久久久久久不卡8050| 免费观看在线色综合| 丝袜脚交一区二区| 极品少妇一区二区三区精品视频 | 久久久一区二区三区| 国产精品拍天天在线| 亚洲超丰满肉感bbw| 久久99久久精品| 7777精品伊人久久久大香线蕉完整版| 精品国产乱码久久久久久老虎| 国产午夜精品福利| 午夜久久久久久电影| 欧美日韩一区不卡| 亚洲欧洲另类国产综合| 日本vs亚洲vs韩国一区三区二区 | 欧洲生活片亚洲生活在线观看| 精品乱人伦小说| 亚洲电影在线免费观看| 成人性视频免费网站| 欧美成人一级视频| 丁香激情综合国产| 亚洲成av人影院在线观看网| 欧美电影免费观看完整版 | 精品福利一区二区三区免费视频| 国内精品视频666| 欧美精品丝袜中出| 亚洲日穴在线视频| 精品一区二区三区在线观看国产| 国产亚洲精品超碰| 欧美日韩久久一区| 亚洲一区二区在线免费看| 成人一区在线观看| 亚洲一线二线三线视频| 欧美mv日韩mv国产网站app| 成人网在线免费视频| 婷婷国产在线综合| 亚洲欧美综合在线精品| 欧美狂野另类xxxxoooo| 丁香五精品蜜臀久久久久99网站| 久久久综合九色合综国产精品| 99精品桃花视频在线观看| 国产精品另类一区| 蜜臀精品久久久久久蜜臀| 色综合中文字幕国产 | 日本欧美一区二区三区| 精品视频一区二区三区免费| 激情欧美一区二区三区在线观看| 亚洲女同一区二区| 国产亚洲欧美在线| 久久亚洲精品国产精品紫薇| 国产suv精品一区二区三区| 日韩制服丝袜av| 一级做a爱片久久| 3751色影院一区二区三区| 99久久久无码国产精品| 国产大陆亚洲精品国产| 国产精品传媒在线| 国产亚洲精品资源在线26u| ww亚洲ww在线观看国产| 精品剧情v国产在线观看在线| 欧美日韩久久久一区| 欧美亚洲免费在线一区| 毛片不卡一区二区| 日本不卡中文字幕| 日本成人在线一区| 国内精品在线播放| 国产真实乱子伦精品视频| 久久91精品国产91久久小草 | 欧美综合久久久| 欧美视频在线播放| 欧美挠脚心视频网站| 91精品国产综合久久精品| 国产高清精品在线| 国内精品国产三级国产a久久| 美女一区二区视频| 久久国产精品无码网站| 亚洲欧美一区二区三区孕妇| 国产精品色一区二区三区| 中文字幕不卡在线观看| 欧美精品三级日韩久久| 欧美日韩一区不卡| 日韩欧美一区二区视频| 精品国产乱码久久久久久1区2区| 国产精品美女一区二区在线观看| 国产日韩欧美精品一区| 欧美一区二区网站| 日韩三级精品电影久久久| 色婷婷狠狠综合| 卡一卡二国产精品| 99re8在线精品视频免费播放| 大尺度一区二区| 色哟哟精品一区| 欧美一区二区三区男人的天堂| 亚洲国产精品久久久男人的天堂| 亚洲国产一区二区a毛片| 蜜臀av一区二区在线免费观看| 国产精品亚洲成人| 午夜精品久久久久久不卡8050| 男男视频亚洲欧美| 成人av动漫网站| 国产成人精品免费| 91色porny在线视频| 成人app下载| 欧美日韩国产小视频在线观看| 91.xcao| 久久久国产精品麻豆| 亚洲在线视频网站| 韩国精品一区二区| 欧美日韩在线播放| 中文字幕精品一区| 男人的天堂久久精品| 91免费看`日韩一区二区| 日韩一区二区电影| 中文字幕五月欧美| 久久成人麻豆午夜电影| 日本精品一区二区三区四区的功能| 成人免费毛片app| 欧美老年两性高潮| 亚洲精品第一国产综合野| 亚洲精品免费播放| 国产精品综合视频| 欧美久久久久久久久| 亚洲欧美日韩国产成人精品影院| 开心九九激情九九欧美日韩精美视频电影| 99精品欧美一区二区三区综合在线| 日韩一区二区免费视频| 亚洲国产欧美一区二区三区丁香婷| 国产91精品久久久久久久网曝门| 欧美一区二区视频在线观看| 亚洲精品国产品国语在线app| 国产成人午夜精品5599| 日韩美女在线视频 | 亚洲欧美色综合| 高清不卡一区二区| 久久精品网站免费观看| 久久精品国产一区二区| 欧美精品在线一区二区三区| 亚洲私人影院在线观看| 99riav久久精品riav| 中文字幕在线视频一区| 国产精品中文字幕日韩精品| 精品欧美一区二区久久| 久久精品国产澳门| 欧美成人激情免费网| 精品一区二区三区免费| 欧美一区二区三区思思人| 午夜在线成人av| 欧美视频一区二区三区在线观看| 依依成人精品视频| 欧美午夜精品免费| 图片区小说区国产精品视频| 日韩一区二区麻豆国产| 成人动漫一区二区在线| 亚洲精品久久嫩草网站秘色| 欧美艳星brazzers| 久久精品国内一区二区三区| 国产精品色哟哟网站| 欧美日韩一区二区三区不卡 | 国产馆精品极品| 国产精品二区一区二区aⅴ污介绍| 97精品国产露脸对白| 亚洲二区在线观看| 日韩精品专区在线影院观看 | 欧美在线观看一区| 亚洲精品免费在线观看| 欧美日韩一区二区三区四区五区| 日本午夜精品视频在线观看| 久久免费的精品国产v∧| 成人动漫视频在线| 亚洲成在线观看| 久久九九99视频| 在线免费观看日韩欧美| 强制捆绑调教一区二区| 国产精品久久久99| 欧美一区二区在线免费观看| 国产精品一二三在| 午夜精品免费在线| 国产精品久久久久久久久久久免费看| 91网站黄www| 色国产综合视频| 韩国成人精品a∨在线观看| 亚洲国产一区二区在线播放| 久久久激情视频| 欧美精品三级日韩久久| 91在线云播放| 国产在线视频一区二区| 一区二区在线免费观看| 日韩精品一区二区在线观看| 一本大道av伊人久久综合| 久久精品国产成人一区二区三区| 亚洲少妇最新在线视频| 日韩美女视频一区二区在线观看| 色综合天天综合网天天狠天天| 美国十次综合导航| 亚洲综合色网站| 亚洲欧洲韩国日本视频| 久久久久久**毛片大全| 欧美一区二区视频在线观看| 在线免费不卡电影|