使用vb2005阅读开放办公室的word文档文本 [英] read open office word document text using vb2005

查看:74
本文介绍了使用vb2005阅读开放办公室的word文档文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从打开的Office Word文档中读取文本.就像从文本文件中读取文本一样.
例子

how to read text from open office word document. like read text from text file.
example

FILE_NAME = "C:\Users\prakash\Desktop\Email.text"
       If System.IO.File.Exists(FILE_NAME) = True Then

           Dim objReader As New System.IO.StreamReader(FILE_NAME)

           Do While objReader.Peek() <> -1
               TextLine = TextLine & objReader.ReadLine() & vbNewLine
           Loop

           Textbox1.Text = TextLine

       Else

           MsgBox("File Does Not Exist")

       End If

推荐答案

您可能想看看 Open Office API [示例 [
You might want to take a look at the Open Office API[^], and some examples[^]


这篇关于使用vb2005阅读开放办公室的word文档文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆