首页 | 本学科首页   官方微博 | 高级检索  
     

利用XML和Excel设计动态通用报表系统的新方法
引用本文:王勇超,张璟,马静,王新卫,杨凯锋.利用XML和Excel设计动态通用报表系统的新方法[J].现代电子技术,2008,31(18).
作者姓名:王勇超  张璟  马静  王新卫  杨凯锋
作者单位:1. 西安理工大学计算机学院,陕西,西安,710048
2. 西安工业大学,陕西,西安,710048
摘    要:提出一种利用XML和Excel设计动态通用报表系统的新方法。首先对Excel报表模板进行分解,生成报表模板的报表信息、架构信息和映射信息,再根据统计模板生成统计分析信息,这些信息均以XML文档的形式存入数据库。在系统运行时,将用户上报的Excel文件中的报表数据提取出来,以XML文档的形式存入数据库。然后结合XPath和XQuery对报表数据进行统计分析,得到统计报表数据。最后将统计报表数据组装为Excel文件输出给用户。采用这种方法设计的报表系统动态灵活、通用性强。

关 键 词:XML  Excel  XPath  XQuery

A New Way to Design General - purpose Reporting Systems Using XML and Excel
WANG Yongchao,ZHANG Jing,MA Jing,WANG Xinwei,YANG Kaifeng.A New Way to Design General - purpose Reporting Systems Using XML and Excel[J].Modern Electronic Technique,2008,31(18).
Authors:WANG Yongchao  ZHANG Jing  MA Jing  WANG Xinwei  YANG Kaifeng
Abstract:This paper discusses a new way to design dynamic and general-purpose reporting systems,which utilizes XML and Excel.Excel templates is deconstructed and reporting information,structure information and mapping information of templates are built,and statistics by a statistic template is generated,and all these information are stored in database in XML format.After that,data is extracted from user uploaded Excel files and it is saved to database in XML format.Using Xpath and XQuery,reporting data and statistic data which is further composed into an Excel file to users.This kind of design makes reporting system more flexible and customizable.
Keywords:XML  Excel  XPath  XQuery
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号