摘要: 为减少日常工作中Word报告编制的工作量,提出一种基于动态网页的可扩展Word报告自动生成方法。将数据处理方法封装为数据占位符,并插入Word文档中定制报告模板。利用报告模板生成ASPX动态网页,根据用户操作调用相应的数据处理方法进行信息录入和检索,替换报告模板中的数据占位符,从而生成最终报告。应用结果表明,该方法能提高Word报告编制的效率。
关键词:
动态网页,
Word报告,
报告模板,
占位符
Abstract: In order to reduce the workload of daily Word report generation, this paper presents a scalable method of automated Word report generation based on dynamic Web pages. The symbols encapsulated from data processing methods are inserted into Word document in order to customize the report template, which is converted to ASPX Web pages. The corresponding data processing methods are invoked to input or retrieve information according to the user operation. The symbols are replaced by the information in order to generate the final report. Application results demonstrate that the method can improve the efficiency of Word report generation.
Key words:
dynamic Web page,
Word report,
report template,
placeholder
中图分类号:
刘鹏, 秦巍, 周永辉, 郭义琪. 基于动态网页的Word报告自动生成方法[J]. 计算机工程, 2012, 38(5): 279-280,284.
LIU Feng, QIN Wei, ZHOU Yong-Hui, GUO Xi-Qi. Automatic Generation Method of Word Report Based on Dynamic Web Page[J]. Computer Engineering, 2012, 38(5): 279-280,284.