期刊文献+

数据库数据在Word中的不规则表格化打印 被引量:6

Printing Database Records and Fields in word Irregular Tables by Programming
下载PDF
导出
摘要 通过VisualC++6.0编程,使用ADO技术动态打开数据库,可任意选择数据库中的记录和字段。用Office宏技术,通过将录制的宏与VisualC++6.0程序中的对应函数进行比较,可知道函数参数类型等信息,从而可实现对Word的控制,能够将任意字段的标识字符串插入到含有不规则表格的Word文档中的任意位置。之后将原文档看作一个模板,用各字段中的数据去替换相应的标识字符串,并生成新文档;若指定多条记录,每条记录生成一个新文档,即实现了批处理。最终用Word的打印排版功能完成不规则表格化打印。 How to print database records and fields at will in irregular tables is discussed by Visual C ++ 6.0 programming. Database is opened dynamically by ADO technology; database records and fields can be selected at will. Using the macro technology of Microsoft Office, operations in the Word can be recorded in Visual Basic scripts.By comparing with the Visual C ++ 6.0 corresponding functions, types of function parameters are known, and thus, the program can control the Word. Mark strings of specified fields are inserted at given positions in Word document including irregular tables. Then the document is used as a template, each mark string is replaced by its content, and saved as a new document. If many records are selected, for each record a new document is produced; that is to say, the program can do the replacement work in batches. Finally, the powerful printing and composing abilities of the Word are used to print database at will.
出处 《河南科技大学学报(自然科学版)》 CAS 2007年第1期38-40,共3页 Journal of Henan University of Science And Technology:Natural Science
基金 国家十五科技攻关项目 河南太阳能与建筑结合试点示范项目(2002BA405B01-403-1)
关键词 数据库 文字处理 不规则表格化打印 管理软件 Database Word Irregular table print Management software
  • 相关文献

参考文献6

二级参考文献9

  • 1张红军 王虹 等.Visual Basic6.0中文版高级应用与开发指南[M].北京:人民邮电出版社,1999,10..
  • 2吴金生.Word2000中文版VBA开发实例指南[M].电子工业出版社,2000..
  • 3肖金秀.Visual FoxPro6.0应用基础教程[M].中国石化出版社,1999..
  • 4.在Delphi中处理Word文档与数据库的互联.中国计算机世界出版服务公司http://dhome.myrice.com/,Tips/DLL&OtherTool/tip07—5.htm.[M].,2004(3)..
  • 5.クリップボ-ドで任意のデタを受け渡す[EB/OL].http://homepage2.nifty.com/Mr_XRAY/Halbow/Notes/NO14.html.,2004(4).
  • 6(美)Charlie Calvert. Delphi and Microsoft Office:Automation Excel and Word, 1997.
  • 7.Delphi 流操作技巧[EB/OL].http://www.delphiboy.com.,2004(5).
  • 8姚庭宝 周军民.Delphi高级程序设计指南[EB/OL].http://www.bookhome.net/diannao/delphi2/index.html.,2004(2).
  • 9(美)[K.盖茨]KenGetz,(美)[M.吉尔伯特]MikeGilbert著,邱仲潘等.VBA高级开发指南[M]电子工业出版社,1997.

共引文献12

同被引文献17

引证文献6

二级引证文献3

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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