Text from a Word.Doc

  • Thread starter Thread starter Robin Walter
  • Start date Start date
R

Robin Walter

Hello,

i must read all Text from a word document with VB.net and save them in a
string variable, but i don´t know how :-( ?
Can anybody help me ?

Thanks
Robin
 
try this

dim strFile as string
Dim fs as new IO.Filestream("C:\myworddoc.doc", FileMode.Read,
FileAccess.Read)
Dim sr as new IO.StreamReader(fs)

strfile = sr.ReadToEnd
 
Hello,

thanks but now i have the binary String from the Worddokument. I need all
word´s without pictures etc.

Thanks
Robin
 
Back
Top