用VC++语言创建WORD文档  被引量:6

Creating word documents in VC++

在线阅读下载全文

作  者:申屠浩[1] 鲍可进[1] 

机构地区:[1]江苏大学计算机学院,江苏镇江212013

出  处:《计算机工程与设计》2004年第6期961-962,967,共3页Computer Engineering and Design

摘  要:简单文本格式无法生成复杂的表格和图形,因而采用WORD(或EXCEL)作为专用软件的数据报表文件是很有意义的,它可以按照用户要求将数据以图表的形式形象地表示出来。为了在VC++环境中创建和生成WORD文档,必须利用COM技术,把WORD程序看做COM服务器,把用户程序看做客户端,利用COM技术创建WORD对象,利用WORD对象调用VBScript函数(宏函数)来控制WORD文档的生成。通过研究证实该技术是可行的,并且对OFFICE软件都适用。Simple text file can't display data in table or chart format, so using word (or excle) document as program's report file is very useful, it can use table and chart to display data in a direct and clear way, a ccoring to the users' reqirement. In order to create a word document in VC++ environment, COM technology must be used. The word program worked as server and user's program worked as client. A word object was created by COM technology, and then the word object was used to call VBScript function for manipultating the generation of word document. This technology is useful to all office programs.

关 键 词:VC++语言 WORD文档 OLE COM VBSCRIPT 头文件 

分 类 号:TP311.52[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象