![](https://static.zsdocx.com/FlexPaper/FileRoot/2019-6/5/11/745d060f-da9e-4e6a-b595-836340443e2d/745d060f-da9e-4e6a-b595-836340443e2dpic.jpg)
![外文翻譯---在服務(wù)端客戶(hù)端模式下遠(yuǎn)程實(shí)時(shí)動(dòng)態(tài)監(jiān)測(cè)系統(tǒng)activex技術(shù)的應(yīng)用_第1頁(yè)](https://static.zsdocx.com/FlexPaper/FileRoot/2019-6/5/11/745d060f-da9e-4e6a-b595-836340443e2d/745d060f-da9e-4e6a-b595-836340443e2d1.gif)
版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、<p><b> 英文原文</b></p><p> Application of ActiveX Technology in the Remote Dynamic Monitoring System</p><p> Xiaohui Mo and Yi Zhang</p><p><b> Abstract.<
2、;/b></p><p> For the purpose of implementing industry remote Dynamic monitor based on the web in the MIS, the structure of system is the thin client model as Browser/Server, the html files which embraced
3、 ActiveX controls are downloaded on the client, the method of ActiveX control is called to access data port, and the remote data on the client are transferred by the way of ADO.In the paper, an application example is giv
4、en according to the working experience, which introduces how to apply the technology of Ac</p><p> Keywords: B/S, ActiveX, ADO, Dynamic Monitor System.</p><p> 1 Introduction</p><p&
5、gt; With the rapidly development of internet/intranet technology, the network environment is constantly updated, and the browser technology is becoming more perfect, it is imperative to build remote dynamic monitoring s
6、ystem based on B/S.The purpose of research and development for the system is to require it to breakthrough the current closed situation of the general monitoring system, and browse the dynamic situation with browser on i
7、ntranet everywhere, and make the level of automation, operation m</p><p> Recent years, with the functional requirements improving of internet/intranet, many new technologies emergence to expand internet ca
8、pabilities, it makes possible for those assumptions, the ActiveX technology based on the Component Object Model (COM) and Windows 32-bit application program interface (Win32API) is especially eye-catching. In the paper,
9、we discuss an application method of ActiveX technology in the development of dynamic remote monitoring system in a steel plant for readers to learn.</p><p> 2 Key Technologies of System Development</p>
10、;<p> 2.1 ActiveX Technology</p><p> ActiveX is the technology that Microsoft provide the majority of developers to integrate the computer desktop environment and internet, and its substantial resou
11、rces together [2-3]. As a technology for internet application development, ActiveX is widely used in Web servers and clients in all aspects. ActiveX control technology is the core technology of ActiveX which will be used
12、 to compile some interface program or complex program block(contains lots of graphics, images, etc.) in accordance with</p><p> 2.2 ADO Technology</p><p> ADO (ActiveX Data Objects) is the dat
13、abase access component of ActiveX which is the latest product of Microsoft for database realease on the inernet, it can shield complexity of remote data access with high speed.</p><p> There are seven separ
14、ate objects and four collections in ADO model. These objects of ADO greatly simplify the complexity of database access, and make database access easier. ADO supports VBScript, JavaScript and other scripting language with
15、 remote data service characteristics, especially for database access on the internet/intranet environment. It is particularly important for the monitoring system with B/S structure.</p><p> 3 Application of
16、 ActiveX Technology in System</p><p> 3.1 Use ActiveX Control to Achieve Web Dynamic Display</p><p> In Web pages of the system, we need to show curves, bar graphs, components and other graphi
17、cs. The status of those graphics can be changed by real-time data. It is difficult to achieve dynamic graphics display by ASP and other pure Web technology, but ActiveX control technology is very suitable for internet/in
18、tranet applications .</p><p> First, ActiveX control can be developed in multiple languages, such as VC, Delphi,VB and so on. ActiveX controls developed by these high-level languages are embedded in Web pag
19、es, they not only increase the flexibility of Web page development, more importantly, greatly expand Web features. they make some functions only achieved by high-level language to be realized easily in the Web pages.<
20、/p><p> Secondly, after the ActiveX control on internet/intranet is automatically downloaded to the local, it will become the local computer's resources for future use.it can divorce from the Web server to
21、 be executed by IE as an independent process.</p><p> So we arrange the database access and the graphical display capabilities to the ActiveX controls to implement. Web server only needs to embed ActiveX co
22、ntrols in HTML pages for IE browser download. After the control is downloaded to the client computer, the control will connect the network database to read real-time data and generate graphics based on the data[5-6]. Bec
23、ause the refresh timer function is added in the control, so the dynamic graphical display can be realized. </p><p> Controls use ADO to access database. Because ADO can use connection string to connect data
24、base, so we only define connection string in design. ADO control is downloaded to the local computer without database configuration with more versatility. So it is more suitable to access database for distributed users o
25、n the intranet.</p><p> Because the graphical display and refresh function run locally, Intranet only transport the real-time data, so this way reduces network data traffic, and ActiveX can provide better g
26、raphical user interface, and allows the realization of dynamic graphics for better result . In addition to graphics, we also use this way to do various operations in the database such as query, modify and so on. this way
27、 is much faster rate than the ASP.</p><p> 3.2 Example of ActiveX Control Development in Delphi</p><p> As an excellent development tool, Delphi provides a powerful component development techn
28、ology, ActiveX controls can be easily compiled by it. ActiveX controls can be developed in two ways: First, make a single VCL (Visual Component Library) control in delphi directly into ActiveX control. Secondly, package
29、multiple VCL to constitute functional complex ActiveX control by ActiveForm.</p><p> ActiveX controls compiled by ActiveForm are very convenient, you can put in visual controls or non-visual controls in Act
30、iveForm. We can use controls to compile more complex programs, and then add properties, methods, and events to the ActiveX type library. These properties, methods, and events associated with properties,methods, and event
31、s of ActiveForm allow users to operate their controls on the ActiveForm. ActiveX compiled into ActiveX controls with OCX Suffix can be easily embedded in Web p</p><p> Figure 1 is ActiveX TrendControl which
32、 use to display field data trend and bar graphs in the system. it reads real-time data of database on the server through ADO,and then convert the data to display with trend curve and bar graphs[7-8]. It can display four
33、data at the same time. As it involves complex graphs, we use ActiveForm to develop it. ActiveForm of the TrendControl includes the following main Delphi controls:</p><p> ADOTable is used to access table on
34、 the database server by ADO mode.</p><p> DBEdit shows data accessed by the TADOTable.</p><p> DataSource shows data source interface between TADOTable and TDBEdit.</p><p> Image
35、 is used to draw trend curve.</p><p> Guage is used to display bar graphs.</p><p> Timer is used to produce dynamic effects.</p><p> Fig.1. TrendControl control</p><p&
36、gt; In the application of the system, we also use ActiveForm technology of Delphi to develop data query controls, statistical controls, report controls, etc. they make the client better interactivity and achieve the dat
37、a release. In these controls, we all use ADOConnection, ADOQuery, ADOTable and other controls of Delphi, they connect database through ADO mode. Next, we briefly outline the method of their implementation:</p><
38、;p> (1) Data Query Control: This control provides users with a data query interface.Users can query data by time, sector classification. In the development of such control, we use some database display controls of De
39、lphi, such as DBGrid, BNavigator, DBEdit, etc. These controls can provide a good user interaction, so that the data query become more convenient. Data query use SQL statements to achieve, it can be easily inserted in the
40、 ADOQuery.</p><p> (2) Statistical Control: The control has statistics, summary and rendering graphics functions according to different data categories. In addition to have data query control functions, it
41、also need to achieve a certain of statistical computing and graphics rendering capabilities. Statistics and summary are achieved by SQL statement. Graphics rendering can be used by Delphi's DBChart or some graphics d
42、isplay ActiveX control.</p><p> (3) Report Control: It is used to implement generation, printing of various types of report in the client. The Formula One Control is used to generate and print Excel report
43、independently. As various reports have different formats, when we use Formula One to develop the report controls, there are two options: First, use program to generate the corresponding report, This method is more compli
44、cated. The other is that the base table is defined by artificial, data put in it by program. This method i</p><p> The following simple example use the ActiveX control TrendControl. Ocx of the system.</p
45、><p> < OBJECT ID=”Syspic”CLASSID=”CLSID:795BA425-2FA3 -11D3 -8BEA -00105A5ED4 ”</p><p> CODEBASE=”http://99.98.97.5/trend/TrendControl.ocx#version=1,0,0,0”</p><p> WIDTH=”798” H
46、EIGHT=”658” ALIGN=”center”</OBJECT></p><p> Here, the ClassID and file path or URL of OCX must be provided. Before the client browse this page, it will search ClassID in the local registry firstly. If
47、 there is no updated version, the control is not necessary to be downloaded. Otherwise, the control will be searched according to the path specified by CODEBASE and be downloaded to the client, so the client can access d
48、ynamic real-time information and historical information via IE. Also the ID of tag OBJTCT is the name of the OCX object, it </p><p> 4 Questions in Development of ActiveX Control</p><p> Accor
49、ding to the development practice, in the development of ActiveX control, we should pay attention to the following questions:</p><p> (1) the Size of Control: If the control is too large, it will affect brow
50、sing speed at the first time. In order to reduce the size of graphical controls, we should avoid some graphical interface which are provided by the development environment, while try to use API functions (Win32GDI) of Wi
51、ndows to draw the graphics. Of course, it will increase the difficulty of the development. we should specific treatment to specific circumstances.</p><p> (2) the Universal of Control: First, the control sh
52、ould fit requirements of different Web users. it requires to use windows common technology to develop the control, it can also run in a pure Windows environment. Secondly, the common functions should be taken into accoun
53、t in the control development. For the similar functionality, you can use a control to achieve, which can reduce the number of controls, and also reduces the number of control downloads on the network.</p><p>
54、; (3) the Maintainability of Control: the control should be considered upgrad, maintenance and other issues in the system development. Control need to provide more flexible methods and properties. When the system struct
55、ure changes, the control should continue to be used.</p><p> Considering the above questions, although the control development will increase the difficulty, but it makes the system structure optimized to fa
56、cilitate the development of the system, and can bring good maintainability.</p><p> Acknowledgments. The heading should be treated as a 3rd level heading and should not be assigned a number.</p><
57、p> 5 Conclusions</p><p> In Comparison with the other remote supervisory control methods, the paper shows the advantages of B/S structure based on ActiveX technique in remote dynamic monitoring system,
58、and gives an example of practical application. It is proved by practice that efficient and secure internet application software can be developed by adopting this system structure.</p><p> Acknowledgments. T
59、he project is supported by the Natural Foundation of the Jiangsu Higher Education Institutions of China under Grants No. 09kjd510009.</p><p><b> 中文譯文</b></p><p> 在服務(wù)端/客戶(hù)端模式下遠(yuǎn)程實(shí)時(shí)動(dòng)態(tài)監(jiān)
60、測(cè)系統(tǒng)</p><p> ActiveX技術(shù)的應(yīng)用</p><p><b> 莫曉暉 張怡</b></p><p> 摘要:為實(shí)現(xiàn)基于網(wǎng)絡(luò)信息管理系統(tǒng)(MIS)的工業(yè)遠(yuǎn)程動(dòng)態(tài)監(jiān)測(cè),系統(tǒng)的結(jié)構(gòu)是基于B / S系統(tǒng)結(jié)構(gòu)(瀏覽器和服務(wù)器結(jié)構(gòu))的精簡(jiǎn)客戶(hù)端模型。包含ActiveX控件的html文件下載到客戶(hù)端后,ActiveX控件的類(lèi)成員函數(shù)就會(huì)
61、訪(fǎng)問(wèn)數(shù)據(jù)端口,在客戶(hù)端的遠(yuǎn)程數(shù)據(jù)利用ADO來(lái)進(jìn)行傳輸。在本篇論文中,我們根據(jù)工作經(jīng)驗(yàn)給出了應(yīng)用實(shí)例,這個(gè)應(yīng)用實(shí)例介紹了在B / S系統(tǒng)結(jié)構(gòu)(瀏覽器和服務(wù)器結(jié)構(gòu))中如何應(yīng)用ActiveX技術(shù)和ADO(ActiveX控件存取存取數(shù)據(jù)源的COM組件)。經(jīng)過(guò)實(shí)踐證明,網(wǎng)絡(luò)應(yīng)用軟件可以采用該系統(tǒng)的開(kāi)發(fā)結(jié)構(gòu),這是有效、安全的。</p><p> 關(guān)鍵字:B / S系統(tǒng)結(jié)構(gòu)(瀏覽器和服務(wù)器結(jié)構(gòu)) ActiveX技術(shù) AD
62、O技術(shù) 動(dòng)態(tài)控制系統(tǒng)</p><p><b> 前言</b></p><p> 隨著計(jì)算機(jī)及互聯(lián)網(wǎng)網(wǎng)絡(luò)技術(shù)的發(fā)展,網(wǎng)絡(luò)環(huán)境不斷更新,瀏覽器技術(shù)變得越來(lái)越成熟,那就要必須建立基于B / S系統(tǒng)結(jié)構(gòu)(瀏覽器和服務(wù)器結(jié)構(gòu))遠(yuǎn)程實(shí)時(shí)動(dòng)態(tài)監(jiān)測(cè)系統(tǒng)。研究的目的和系統(tǒng)的開(kāi)發(fā)就是讓遠(yuǎn)程實(shí)時(shí)動(dòng)態(tài)監(jiān)測(cè)系統(tǒng)突破當(dāng)前關(guān)閉的一般監(jiān)控系統(tǒng),瀏覽瀏覽器無(wú)處不在的網(wǎng)絡(luò)動(dòng)態(tài)情況,使企業(yè)在自動(dòng)化水平
63、、經(jīng)營(yíng)管理、經(jīng)濟(jì)和人力投資其他方面的有更高的性?xún)r(jià)比。</p><p> 近年來(lái),隨著互聯(lián)網(wǎng)/網(wǎng)絡(luò)功能要求的提高,出現(xiàn)了許多新的技術(shù)來(lái)擴(kuò)展互聯(lián)網(wǎng)能力,它使這些假設(shè)成為可能,ActiveX技術(shù)基于COM 組件(組件對(duì)象模型)和Win32API(Window的32位應(yīng)用程序接口)尤其引人注目。在本文中,我們討論一個(gè)在鋼鐵廠(chǎng)使用ActiveX技術(shù)開(kāi)發(fā)的動(dòng)態(tài)遠(yuǎn)程監(jiān)控系統(tǒng)來(lái)讓讀者學(xué)習(xí)?! ?.系統(tǒng)開(kāi)發(fā)的關(guān)鍵技術(shù) 2.
64、1 ActiveX技術(shù) ActiveX技術(shù)是微軟給提供大多數(shù)開(kāi)發(fā)者來(lái)整合電腦桌面環(huán)境、互聯(lián)網(wǎng)和它的大量資源在一起。作為為互聯(lián)網(wǎng)應(yīng)用軟件開(kāi)發(fā)的一項(xiàng)技術(shù),ActiveX技術(shù)廣泛用于各方面的網(wǎng)絡(luò)服務(wù)器和客戶(hù)端。ActiveX控件技術(shù)是ActiveX按要求的ActiveX控件用來(lái)編寫(xiě)一些界面程序或復(fù)雜的程序塊(含有豐富的圖形、圖像、等等)中的核心技術(shù)。這個(gè)程序是ActiveX控件。 事實(shí)上,ActiveX控件是一個(gè)符合規(guī)格的Acti
65、veX控件程序。這些程序通常是以exe,dll,ocx后綴的形式儲(chǔ)存在服務(wù)器。他們能運(yùn)行在其他程序的服務(wù)器,也可以被自動(dòng)下載到客戶(hù)端運(yùn)行,從而能提高瀏覽速度。</p><p> 2.2 ADO技術(shù) ADO(ActiveX數(shù)據(jù)對(duì)象)是微軟公司在網(wǎng)絡(luò)發(fā)布的最新產(chǎn)品ActiveX數(shù)據(jù)庫(kù)的組成部分,它能有效避免遠(yuǎn)程數(shù)據(jù)訪(fǎng)問(wèn)的復(fù)雜性。在ADO對(duì)象模型有七個(gè)獨(dú)立對(duì)象和四個(gè)收藏。這些ADO對(duì)象大大簡(jiǎn)化數(shù)據(jù)庫(kù)訪(fǎng)問(wèn)的復(fù)雜性,
66、使訪(fǎng)問(wèn)數(shù)據(jù)庫(kù)變得更容易。ADO技術(shù)支持VBScript,JavaScript和其他有遠(yuǎn)程數(shù)據(jù)服務(wù)特點(diǎn)的腳本語(yǔ)言,尤其是支持在互聯(lián)網(wǎng)/網(wǎng)絡(luò)環(huán)境對(duì)數(shù)據(jù)庫(kù)的訪(fǎng)問(wèn)。這是對(duì)監(jiān)控系統(tǒng)與B / S系統(tǒng)結(jié)構(gòu)(瀏覽器和服務(wù)器結(jié)構(gòu))是特別重要的。</p><p> 3.系統(tǒng)中ActiveX技術(shù)的應(yīng)用 3.1利用ActiveX控件實(shí)現(xiàn)網(wǎng)絡(luò)動(dòng)態(tài)顯示</p><p> 在系統(tǒng)中的網(wǎng)絡(luò)頁(yè)面,我們需要表示出曲
67、線(xiàn)、條形圖、組成部分和另外的圖形。實(shí)時(shí)數(shù)據(jù)會(huì)使這些圖形的狀態(tài)發(fā)生一些變化。光利用ASP和其它純網(wǎng)絡(luò)技術(shù)很難實(shí)現(xiàn)動(dòng)態(tài)圖形的顯示,但ActiveX控件技術(shù)是非常適合互聯(lián)網(wǎng)/網(wǎng)絡(luò)應(yīng)用。 首先,ActiveX控件可利用多種語(yǔ)言開(kāi)發(fā),如VC, Delphi,VB等等。在網(wǎng)頁(yè)中嵌入利用這些高級(jí)程序語(yǔ)言開(kāi)發(fā)的ActiveX控件,他們不僅提高了網(wǎng)頁(yè)開(kāi)發(fā)的靈活性,更重要的是極大地拓展網(wǎng)絡(luò)的特性。ActiveX控件使一些只能用高級(jí)語(yǔ)言實(shí)現(xiàn)的功能更容
68、易在網(wǎng)站頁(yè)面實(shí)現(xiàn)。</p><p> 其次,在互聯(lián)網(wǎng)/網(wǎng)絡(luò)的ActiveX控件自動(dòng)的下載到本地之后,它將成為供本地計(jì)算機(jī)以后使用的資源。它能從網(wǎng)絡(luò)服務(wù)器分離出來(lái),被IE瀏覽器作為一個(gè)獨(dú)立的進(jìn)程執(zhí)行。 所以我們安排數(shù)據(jù)庫(kù)訪(fǎng)問(wèn)和圖形顯示功能利用ActiveX控件來(lái)實(shí)現(xiàn)。網(wǎng)絡(luò)服務(wù)器只需要將ActiveX控件嵌入HTML頁(yè)面讓IE瀏覽器下載。在控件下載到客戶(hù)端計(jì)算機(jī)之后,控件連接網(wǎng)絡(luò)數(shù)據(jù)庫(kù)讀取實(shí)時(shí)數(shù)據(jù)和基于數(shù)據(jù)生成
69、圖形。因?yàn)榭丶a(bǔ)充了更新定時(shí)器函數(shù),所以可以實(shí)現(xiàn)動(dòng)態(tài)圖形的顯示。</p><p> ActiveX控件使用ADO技術(shù)訪(fǎng)問(wèn)數(shù)據(jù)庫(kù)。因?yàn)锳DO技術(shù)使用連接字符串來(lái)連接數(shù)據(jù)庫(kù),所以我們只需在設(shè)計(jì)段內(nèi)定義連接字符串。ADO控件下載到本地計(jì)算機(jī)上無(wú)需數(shù)據(jù)庫(kù)配置就擁有更多功能。所以更合適于網(wǎng)絡(luò)分布式用戶(hù)訪(fǎng)問(wèn)數(shù)據(jù)庫(kù)。</p><p> 因?yàn)閳D形顯示和刷新功能在本地運(yùn)行,網(wǎng)絡(luò)只傳輸實(shí)時(shí)數(shù)據(jù),所以這種方
70、法降低了網(wǎng)絡(luò)數(shù)據(jù)流量,而且ActiveX技術(shù)可提供更好的圖形用戶(hù)界面,能夠更好地實(shí)現(xiàn)動(dòng)態(tài)圖形。除了圖形,我們也利用這種方式在數(shù)據(jù)庫(kù)中做各種各樣的操作如查詢(xún)、修改等。這種方法的速度比ASP快得多?! ?.2 ActiveX控件在Delphi的開(kāi)發(fā)的實(shí)例</p><p> 作為一個(gè)優(yōu)秀的開(kāi)發(fā)工具,Delphi提供了強(qiáng)大的組件開(kāi)發(fā)技術(shù),可以很容易地編輯ActiveX控件。開(kāi)發(fā)ActiveX控件可以用以下兩個(gè)方式:第
71、一,一個(gè)單獨(dú)的VCL(圖形構(gòu)件庫(kù))控件在delphi直接嵌入ActiveX控件。其次,包裝多重VCL(圖形構(gòu)件庫(kù))通過(guò)Active表單組成功能性復(fù)雜ActiveX控件?! ctive表單編譯的 ActiveX控件很方便,你可以在Active表單嵌入圖形控件或非圖形控件。我們可以利用用控件來(lái)編譯更復(fù)雜的程序,然后添加屬性、方法、事件到ActiveX類(lèi)型庫(kù)。這些屬性、方法、事件與Active表單的屬性、方法、事件允許用戶(hù)在Active表
72、單運(yùn)行它們的控件。ActiveX以O(shè)CX的后綴編譯的ActiveX控件可以很容易嵌入到網(wǎng)頁(yè)中。</p><p> 圖1是用來(lái)顯示系統(tǒng)中現(xiàn)場(chǎng)數(shù)據(jù)和條形圖的ActiveX 動(dòng)態(tài)控件。它通過(guò)ADO技術(shù)讀取服務(wù)器數(shù)據(jù)庫(kù)的實(shí)時(shí)數(shù)據(jù),然后把數(shù)據(jù)轉(zhuǎn)換顯示出趨勢(shì)曲線(xiàn)和條形圖。它在同一時(shí)間內(nèi)能夠顯示出四個(gè)數(shù)據(jù)。因?yàn)樗婕暗綇?fù)雜的圖表,我們用Active表單來(lái)開(kāi)發(fā)。Active表單的動(dòng)態(tài)控件包括以下主要Delphi控件: AD
73、O表格是以ADO模式用來(lái)訪(fǎng)問(wèn)數(shù)據(jù)庫(kù)服務(wù)器的表格?! BEdit顯示TADOTable訪(fǎng)問(wèn)數(shù)據(jù)?! ?shù)據(jù)源顯示在TDBEdit和 TADOTable之間的數(shù)據(jù)資源接口?! D像用來(lái)畫(huà)趨勢(shì)曲線(xiàn)?! y(cè)量用來(lái)顯示柱形圖表?! ∮?jì)時(shí)器用來(lái)產(chǎn)生動(dòng)態(tài)效果。</p><p><b> 圖1 趨勢(shì)控制控件</b></p><p> 在系統(tǒng)的應(yīng)用中,我們還利用Delph
74、i的Active表單技術(shù)來(lái)開(kāi)發(fā)數(shù)據(jù)查詢(xún)控件、統(tǒng)計(jì)控件,報(bào)告控件等等它們使客戶(hù)獲得更好的互動(dòng)性和實(shí)現(xiàn)數(shù)據(jù)釋放。在這些控件中,我們都使用 ADO連接,ADO查詢(xún),ADO目錄和其他Delphi控件,它們以ADO模式連接數(shù)據(jù)庫(kù)。接下來(lái),我們簡(jiǎn)要介紹他們的方法: (1)數(shù)據(jù)查詢(xún)控件:控件為用戶(hù)提供了數(shù)據(jù)查詢(xún)接口。用戶(hù)可以按數(shù)據(jù)的時(shí)間、行業(yè)分類(lèi)進(jìn)行查詢(xún)。在這些控件的開(kāi)發(fā)中,我們使用了Delphi中一些數(shù)據(jù)庫(kù)顯示控件,如DBGrid,BNavig
75、ator,DBEdit等等。這些控件可以使客戶(hù)獲得良好的互動(dòng)性,使數(shù)據(jù)查詢(xún)變得更加方便。數(shù)據(jù)查詢(xún)使用SQL語(yǔ)句來(lái)實(shí)現(xiàn),它可以很容易地插入到ADOQuery?! ?2)統(tǒng)計(jì)控件:控件包含根據(jù)不同的數(shù)據(jù)類(lèi)型的統(tǒng)計(jì)、匯總、圖形渲染函數(shù)。除了有數(shù)據(jù)查詢(xún)控制功能,它還需要完成確定的統(tǒng)計(jì)計(jì)算和圖形渲染的功能。SQL語(yǔ)句完成統(tǒng)計(jì)和匯總操作。圖形渲染可以運(yùn)用在Delphi的DBChart或一些ActiveX控件圖形顯示。</p><
76、;p> (3)報(bào)告控件:它是用來(lái)實(shí)現(xiàn)打印各種類(lèi)型的客戶(hù)端報(bào)告。一個(gè)控件公式用于生成和打印Excel獨(dú)立報(bào)告。因?yàn)椴煌瑘?bào)告有不同的格式,當(dāng)我們用公式一開(kāi)發(fā)報(bào)告控件,有兩種選擇:第一,使用程序產(chǎn)生相應(yīng)的報(bào)告,該方法比較復(fù)雜。另一個(gè)是人們自己定義基表,數(shù)據(jù)通過(guò)程序放在基表里。該方法比較簡(jiǎn)單。然而,在客戶(hù)端程序運(yùn)行之前,客戶(hù)需要下載基表到當(dāng)?shù)赜?jì)算機(jī)或先從遠(yuǎn)程服務(wù)器閱讀基表。</p><p> 下面用是Activ
77、eX控件的TrendControl的簡(jiǎn)單例子。</p><p> <OBJECT ID=”Syspic”CLASSID=”CLSID:795BA425-2FA3-11D3-8BEA -00105A5ED4 ”</p><p> CODEBASE=”http://99.98.97.5/trend/TrendControl.ocx#version=1,0,0,0”</p>
78、<p> WIDTH=”798” HEIGHT=”658” ALIGN=”center”</OBJECT></p><p> 這里, 必須提供ClassID和文件路徑或OCX的URL。在客戶(hù)瀏覽這一頁(yè)之前,它會(huì)首先在當(dāng)?shù)刈?cè)表搜索ClassID。如果沒(méi)有更新版本,沒(méi)有必要下載控件。否則,根據(jù)CODEBASE限定的地址搜索控件,將下載到客戶(hù)端。所以客戶(hù)可以訪(fǎng)問(wèn)動(dòng)態(tài)實(shí)時(shí)信息和通過(guò)IE訪(fǎng)問(wèn)
79、歷史信息。OBJTCT的ID標(biāo)簽是OCX對(duì)象,它是用來(lái)訪(fǎng)問(wèn)和設(shè)置屬性,并調(diào)用對(duì)象的方法等。</p><p> 4. ActiveX控件開(kāi)發(fā)過(guò)程的問(wèn)題 根據(jù)開(kāi)發(fā)經(jīng)驗(yàn),在ActiveX控件的開(kāi)發(fā)過(guò)程中,我們要注意以下問(wèn)題: (1) 控件的大?。喝绻丶螅_(kāi)始將會(huì)影響到瀏覽速度。為了使圖形控件變小,我們應(yīng)該避免一些通過(guò)開(kāi)發(fā)環(huán)境提供的圖形界面,而嘗試用window的API函數(shù)(Win32GDI)畫(huà)的圖形
80、。當(dāng)然,這樣會(huì)增加開(kāi)發(fā)的難度。我們應(yīng)該具體問(wèn)題具體解決。 (2)普通控件:首先,控件應(yīng)滿(mǎn)足不同網(wǎng)民的要求。它需要使用windows共同技術(shù)開(kāi)發(fā)控件,它也可以運(yùn)行在純Windows環(huán)境下。其次,控件的開(kāi)發(fā)應(yīng)該考慮到常用功能。類(lèi)似的功能,可以用一個(gè)控件來(lái)實(shí)現(xiàn),從而減少控件的數(shù)量,也減少下載網(wǎng)絡(luò)控件的數(shù)量。</p><p> (3)維修性的控件:在系統(tǒng)開(kāi)發(fā)中控件應(yīng)考慮版本,維護(hù)和其他問(wèn)題??丶枰峁└`活的
81、方法和性能。當(dāng)系統(tǒng)結(jié)構(gòu)變化,控件應(yīng)該能繼續(xù)被使用。</p><p> 考慮到上述問(wèn)題,雖然控件開(kāi)發(fā)困難度將會(huì)增加,但它能優(yōu)化系統(tǒng)結(jié)構(gòu),能夠加快系統(tǒng)的開(kāi)發(fā),并有很好的可維護(hù)性。</p><p> 批注:標(biāo)題應(yīng)該是3字號(hào)的標(biāo)題,且不應(yīng)被指定一個(gè)號(hào)碼。</p><p> 5結(jié)論 本文介紹基于ActiveX控件的B / S結(jié)構(gòu)遠(yuǎn)程動(dòng)態(tài)監(jiān)測(cè)系統(tǒng)優(yōu)于其他遠(yuǎn)程監(jiān)控方法的
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 眾賞文庫(kù)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- windows系統(tǒng)下svnserver 服務(wù)端和客戶(hù)端安裝配置
- 胖客戶(hù)端模式向智能客戶(hù)端遷移的設(shè)計(jì)與應(yīng)用.pdf
- 基于ActiveX的網(wǎng)絡(luò)視頻監(jiān)控客戶(hù)端設(shè)計(jì).pdf
- 工業(yè)實(shí)時(shí)監(jiān)控系統(tǒng)web客戶(hù)端實(shí)現(xiàn)
- 工業(yè)實(shí)時(shí)監(jiān)控系統(tǒng)web客戶(hù)端實(shí)現(xiàn)
- 客戶(hù)端outlook遠(yuǎn)程接入配置
- 基于面向服務(wù)和智能客戶(hù)端技術(shù)的野外監(jiān)測(cè)協(xié)助系統(tǒng).pdf
- 12182.客戶(hù)端聚合服務(wù)的協(xié)同機(jī)制在動(dòng)態(tài)遙感監(jiān)測(cè)中的應(yīng)用研究
- 使用 ajax extensions 客戶(hù)端進(jìn)行 web 服務(wù)調(diào)用[外文翻譯]
- 遠(yuǎn)程監(jiān)控系統(tǒng)客戶(hù)端軟件的設(shè)計(jì)與實(shí)現(xiàn)
- 基于PDA客戶(hù)端的電廠(chǎng)運(yùn)行實(shí)時(shí)監(jiān)測(cè)系統(tǒng)的研究與實(shí)現(xiàn).pdf
- 門(mén)禁客戶(hù)端在服務(wù)器端配置步驟說(shuō)明
- email客戶(hù)端軟件的應(yīng)用
- 多路遠(yuǎn)程監(jiān)控系統(tǒng)(客戶(hù)端)的設(shè)計(jì)與實(shí)現(xiàn).pdf
- 智能客戶(hù)端技術(shù)在報(bào)名系統(tǒng)中的研究與應(yīng)用.pdf
- 富客戶(hù)端技術(shù)的研究及其應(yīng)用.pdf
- 動(dòng)態(tài)服務(wù)部署客戶(hù)端NHD系統(tǒng)實(shí)現(xiàn)及性能優(yōu)化.pdf
- 客戶(hù)端蜜罐技術(shù)的研究與應(yīng)用.pdf
- 基于Linux的遠(yuǎn)程控制技術(shù)服務(wù)端實(shí)現(xiàn).doc
- va虛擬應(yīng)用管理平臺(tái)客戶(hù)端代理模式
評(píng)論
0/150
提交評(píng)論