您好,欢迎来到中国测试科技资讯平台!

首页> 《中国测试》期刊 >本期导读>WORD试验报告的自动生成

WORD试验报告的自动生成

2335    2016-01-23

免费

全文售价

作者:金良锋, 周文祥

作者单位:西南交通大学牵引动力国家重点试验室, 四川 成都 610031


关键词:Word; VBA; 报告; 自动; 试验


摘要:

为适应数字化技术发展要求,自动、规范、方便地生成各类试验报告,结合Word文档的模板技术,巧妙运用Word软件的域和宏两个功能,应用VBA(Visual Basic for Applications)编程,研究了利用Visual Basic语言编写的Word试验报告自动生成软件,分析了此软件的优点和实现方法,重点介绍了对多表格、多图形的处理,以车轮外形试验报告自动生成系统为实例,验证了此方案的实用、有效性,实践表明此方法机制简单、灵活方便、适用范围广。


Auto generation of experiment report in WORD form

JIN Liang-feng, ZHOU Wen-xiang

Traction Power State Key Laboratory, Southwest Jiaotong University, Chengdu 610031, China

Abstract: For accommodating the development of numeralization,automatic test report creating is quite necessary.This paper introduced how to use the templet of Word document,how to utilized "field" and "macro" in Word and applied the VBA (Visual Basic for Applications) for auto-generating test report in Word form by Visual Basic language.Importantly,it presented the technique to deal with multi-forms and multi-graphics and confirmed the practicability and validity of the methods by the auto-generating test report system of the outline of the wheel.Practices indicated that the methods were of briefness,agility,facility and with wide application field.

Keywords: Word; VBA; Report; Auto; Experimentation

2007, 33(4): 112-115  收稿日期: 2006-6-15;收到修改稿日期: 2006-8-22

基金项目: 

作者简介: 金良锋(1982-),男,湖北安陆人,硕士研究生,主要从事软件工程技术研究。

参考文献

[1] 汪翠英, 等.LabVIEW中Word报告生成功能开发[J].仪器仪表用户, 2005, 12(1):94-96.
[2] 肖刚, 等. 基于Word文档的数据交换策略及其实现[J].计算机应用与软件, 2004, 21(3):34-66.
[3] 刘春雷, 刘春雨.Word自动化合并邮件在VC中的实现与应用[J].信息技术, 2004, 28(8):75-80.
[4] 陈坚红, 等.火电厂性能分析报告柔性自动生成软件的研究与实现[J].电站系统工程, 2001, 17(2):72-76.
[5] 张佐东, 等.在PB中实现Word内容的替换[J].PC World China, 2002, 16:90-91.
[6] 刘波, 等.用VB和VBA实现动态报表[J].计算机应用研究, 2002, 6:130-131.
[7] 尹咏梅.调用Word实现计量证书的自动生成[J].中国计量, 2005, 8:76-77.
[8] 《电脑编程技巧与维护》杂志社.Visual Basic编程精选集锦[M].北京:科学出版社, 2003.
[9] 云舟工作室.中文版Word 2000 VBA一册通[M].北京:人民邮电出版社, 2000.