• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2008, Vol. 30 ›› Issue (4): 124-127.

• 论文 • 上一篇    下一篇

基于Excel的电力监控通用报表系统的设计与实现

林艳华 吴健 周胜杰   

  • 出版日期:2008-04-01 发布日期:2010-05-19

  • Online:2008-04-01 Published:2010-05-19

摘要:

中低压电力监控系统是一个实时数据监控系统,要求能根据用户的实际需要制定报表,而其报表系统一般都采用传统的设计方法。这种设计主要存在两方面的问题:一是仅仅可以满足用户的静态需求;二是其设计一般采用开发环境自带的一些报表工具,而这些报表工具一般又只能实现规则的报表定义。本文针对电力监控中传统报表设计存在的这这些问题,给出了利用OLE与VBA相结合对EXCEL实现控制的一种面向用户的报表实现技术,使组态人员能定制报表格式和报表内数据元素,最终可以形成满足用户动态需求的各种样式的规则报表和不规则报表。

关键词: VBA Excel OLE实时 OCX

Abstract:

The Low-Voltage Power Monitoring System is a real-time data monitoring system, which can construct a report following the customers' requirements, bu  t its spreadsheet usually adopts the traditional design form. This design mainly has two problems. One of them is that it just satisfies the users' sta atic requirements , while the other one is that it usually uses the report tools which belong to the development environments and these tools always realize only the regular report definition. In this paper, we discuss the deficiency of the dissatisfactory dynamic requirements in conventional spreadshee t design, and finally present a customer-oriented technology which can realize Excel control with OLE and Vt3A to actualize the report. And then the use  rs can customize the report' s format and data to realize all kinds of regular and irregular reports which can meet the users' dynamic needs.

Key words: VBA, Excel;OLE, real- time ;OCX