[2005] word spelling check
hi i already have a working code to spell check through word checkspelling. also i need to handle the check spelling windo CANCEL BUTTON. basically im going to ignore spell check window sentence/paragraph/word suggestion.
vb Code:
wordApp = New Word.Application
wordApp.Visible = False
wordApp.Documents.Add()
wordApp.Selection.Text = textContentRichTextBox.Text
wordApp.ActiveDocument.CheckSpelling()
textContentRichTextBox.Text = wordApp.Selection.Text
wordApp.ActiveDocument.Close(SaveChanges:=Word.WdSaveOptions.wdDoNotSaveChanges)
wordApp.Quit()
wordApp = Nothing
Re: [2005] word spelling check
This is how you check if user has canceled the spell check.
vb.net Code:
If wordApp.ActiveDocument.Range.SpellingErrors.Count > 0 Then
MsgBox "User pressed Cancel button"
End If
Re: [2005] word spelling check
Actually the spell checker dialog does return values telling you if cancel was pressed or not. Check my Office FAQ for my SpellChecker.NET example.
Edit: I have it directly linked in my signature too.