计算机与现代化 ›› 2012, Vol. 198 ›› Issue (2): 82-85.doi: 10.3969/j.issn.1006-2475.2012.02.022

• 数据库 • 上一篇    下一篇

Word文档中的图片向数据库转换方法的实现

王香菊   

  1. 江阴中等专业学校, 江苏 江阴 214400
  • 收稿日期:2011-11-28 修回日期:1900-01-01 出版日期:2012-02-24 发布日期:2012-02-24

Implementation of Methods for Converting Word File Image into Database

WANG Xiang-ju   

  1. Jiangyin Secondary School, Jiangyin 214400, China
  • Received:2011-11-28 Revised:1900-01-01 Online:2012-02-24 Published:2012-02-24

摘要: 从一个Word文档实例入手,分析Word文档的组成、VBA中对象的应用区间以及Delphi对Word的支持,并设计一种Word文档中的图片信息向SQL Server数据库进行转换的实现方法,通过这种方法可以借助于程序实现自动阅读Word中的信息,将Word文档中的图片信息提取出来存于相应的数据库文件中。验证表明,在办公自动化过程中,用自动转换方法来处理一些包含图片信息的Word文档向数据库的转换是行之有效的方法,可以实现快速、高效的信息转换,极大地提高工作效率。

关键词: VBA 图片, 数据库, 转换, Paragraphs, InlineShapes

Abstract: This article starts with a Word file example and analyzes the issues about the Word file components, application interval of objects in VBA, Delphi supporting Word, designs a method of conversion between picture information in Word files and SQL server database. By this way information in Word files can be read automatically using a program, and picture information in Word files can be extracted and saved in relative database files. Testing results show automatic transformation method converting Word files with picture information to database become effective in OA process, implementing fast and high efficiency information conversion and improving efficiency.

Key words: VBA photogragh, database, convert, Paragraphs, InlineShapes

中图分类号: