期刊文献+

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

Creating word documents in VC++
在线阅读 下载PDF
导出
摘要 简单文本格式无法生成复杂的表格和图形,因而采用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.
出处 《计算机工程与设计》 CSCD 2004年第6期961-962,967,共3页 Computer Engineering and Design
关键词 VC++语言 WORD文档 OLE COM VBSCRIPT 头文件 OLE COM VBScript
  • 相关文献

参考文献5

  • 1MarkMichaelis.COM+编程指南[M].北京:机械工业出版社,2002..
  • 2Microsoft公司.COM+基本服务内幕[M].北京:北京大学出版社,2000.92-110.
  • 3沃特斯 布赖恩.OLE 2从入门到精通[M].北京:电子工业出版社,1987.729-823.
  • 4Microsoft公司.MFC与Windows编程[M].北京:北京大学出版社,2000.1061-1293.
  • 5Microsoft公司. MSDN [DB/CD]. 2001.MicroSoft.Automating Microsoft Office 97 and Microsoft Office 2000mk: MSDN\2001APR\1033\techart.chm::/html/offaut.htm TN039: MFC/OLE Automation Implementation mk:MSDN\ 2001APR\1033\vcmfc.chm::/html/_mfcnotes_tn039.htm

共引文献12

同被引文献36

引证文献6

二级引证文献16

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部