趙波,趙峰
(江蘇省計(jì)量測(cè)試技術(shù)研究所,江蘇 南京 210007)
摘要:本文介紹了如何通過VB編程利用Word Application對(duì)象模型實(shí)現(xiàn)檢測(cè)報(bào)告或原始記錄自動(dòng)生成。文中首先介紹了Word對(duì)象模型及其結(jié)構(gòu);然后詳細(xì)給出了一個(gè)題頭信息重復(fù)的電磁兼容原始記錄自動(dòng)生成的實(shí)際例子,列出了該例的程序代碼。利用文中介紹的方法,在對(duì)需要出具的報(bào)告和記錄必要分析的基礎(chǔ)上,利用VB編程便能實(shí)現(xiàn)檢測(cè)報(bào)告和原始記錄自動(dòng)生成,有效地提高檢測(cè)工作效率及降低報(bào)告差錯(cuò)率。
關(guān)鍵詞:VB;Word Application;檢測(cè)報(bào)告自動(dòng)生成
中圖分類號(hào):TP311.52 文獻(xiàn)標(biāo)識(shí)碼:A 文章編號(hào):1672-4984(2006)03-0119-03
Using VB programming to fulfill testing report and record automatically
ZHAO Bo, ZHAO Feng
(Jiangsu Institute of Measurement and Testing Technology,Nanjing 210007,China)
Abstract: In this paper, it’s described that how to use Word Application Object Model based on VB programming to fulfill testing report and record automatically. First the Word Object Model is introduced; secondly an example of fulfilling EMC testing record automatically is given in detail. Using this method, we can accomplish testing report and record automatically, improve the testing efficiency and reduce the report mistakes.
Key words: VB;Word application;Fulfill testing report automatically