现在暂时只想 把WORD里的文本信息提取出来,如何实现? 暂时不考虑格式图片什么的,只想将WORD里的 字符信息提取出来,存入clob字段里,求教各位大侠了。。
------解决方案--------------------
提取word的文本信息
function string f_word_text(string as_doc)
- C/C++ code
oleobject lolelole = create oleobjectif lole.connecttonewobject("Word.Application") <> 0 then messagebox('', '无法连接Word') return ''end ifstring ls_rlole.documents.open(as_doc, false, true, false, "","", false, "","")lole.selection.wholestoryls_r = lole.selection.textlole.activedocument.close()lole.application.quit()lole.disconnectobject()destroy lolereturn ls_r