摘要
对基于DWT网页模板的Web报表生成技术进行研究。利用Dreamweaver 8定制报表模板,通过自定义字符串的方法标记模板的可变数据,运用SQL语言的自主式和寄生式两种存取方法从数据库中获取相关数据,采用ADO Stream对象实现报表模板的读取及Web报表的生成。报表可以在浏览器观看,也可以导出为Word文件做进一步处理。实际应用表明,这种方法具有可靠性好,操作简单,实用性强和维护方便等特点。
The general Web report generation technique based on DWT webpage template is studied. We use Dreamweaver 8 to customise the report template, and label the variable data in template through user-defined string. First, we employ two access approaches, the independent and the parasitic applications of SQL, to obtain the related data from database, and use ADO stream object to realise the access of report template and the generation of Web report. The report can be viewed by browser as well as be exported as a Word document for further processing. Practical application shows that the method has the characteristics of good reliability, simple operation, strong practicality and convenient maintenance, etc.
出处
《计算机应用与软件》
CSCD
北大核心
2013年第8期190-192,共3页
Computer Applications and Software