Text from a Word.Doc

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Robin Walter

    #1

    Text from a Word.Doc

    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


  • iwdu15

    #2
    RE: Text from a Word.Doc


    try this

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

    strfile = sr.ReadToEnd


    --
    -iwdu15

    Comment

    • Robin Walter

      #3
      Re: Text from a Word.Doc

      Hello,

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

      Thanks
      Robin

      "iwdu15" <jmmgoalsteraty ahoodotcom> schrieb im Newsbeitrag
      news:C8843D2D-3424-4F55-B24D-CE2D919E7389@mi crosoft.com...[color=blue]
      >
      > try this
      >
      > dim strFile as string
      > Dim fs as new IO.Filestream(" C:\myworddoc.do c", FileMode.Read,
      > FileAccess.Read )
      > Dim sr as new IO.StreamReader (fs)
      >
      > strfile = sr.ReadToEnd
      >
      >
      > --
      > -iwdu15[/color]


      Comment

      Working...