Is it any way to search Aspose.Words.Document for a string? Let’s say I need to do similar coding in Aspose.Words as in MS Word, is it possible? Thanks very much.
With objWord.ActiveDocument.Content.Find
.ClearFormatting()
.Text = "Can't open file"
.Forward = True
.Execute()
If .Found = True Then
convertHazard = ""
objWord.Documents.Close (SaveChanges:=Microsoft.Office.Interop.Word.WdSaveOptions.wdDoNotSaveChanges)
result = removeWord()
Exit Function
End If
End With