Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to read text from open office word document. like read text from text file.
example
VB
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
Posted

1 solution

You might want to take a look at the Open Office API[^], and some examples[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900