Search inside MS word using vb.net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hmkaddoura
    New Member
    • Feb 2008
    • 18

    Search inside MS word using vb.net

    Hi...
    is there a way to use the find exact match from MS word in my vb.net?

    I want to open a MS word file in my vb.net and I want to find the exact word in the field text in the word file.

    Regards
    HK
  • MBoogie
    New Member
    • May 2008
    • 4

    #2
    Try this out -
    Dim fileContents As String
    fileContents = My.Computer.Fil eSystem.ReadAll Text(file)

    If fileContents.Co ntains(textBox. Text) Then
    'blah blah
    End If

    fileContents = Nothing

    Comment

    Working...