L
lopamudra pathak via DotNetMonster.com
Hi,
I am checking the spells in my rich text box. Now whenever the page is
laoded the WINWORD.EXE get instatiated and after it is auto deleted.
This spell checking is working fine.
But I want to know will it be possbile without using WINWORD.EXE?
The system which is not having MSOffice, there my code will fail.
can anybody help me to check the spells w/o instatiating the WINWORD.EXE?
Thanks.
This is the working code which is using the MSWord.
WordApp.Documents.Add()
rngRange = WordApp.ActiveDocument.Range
rngRange.InsertAfter(hidRTBText.Value)
Dim SpellCollection As Word.ProofreadingErrors
SpellCollection = rngRange.SpellingErrors
If SpellCollection.Count > 0 Then
lstWrongWords.Items.Clear()
lstAlternatives.Items.Clear()
Dim iword As Integer
Dim newWord As String
For iword = 1 To SpellCollection.Count
If SpellCollection.Item(iword).Text <> TextBox2.Text Then
newWord = SpellCollection.Item(iword).Text
lstWrongWords.Items.Add(newWord)
End If
Next
End If
I am checking the spells in my rich text box. Now whenever the page is
laoded the WINWORD.EXE get instatiated and after it is auto deleted.
This spell checking is working fine.
But I want to know will it be possbile without using WINWORD.EXE?
The system which is not having MSOffice, there my code will fail.
can anybody help me to check the spells w/o instatiating the WINWORD.EXE?
Thanks.
This is the working code which is using the MSWord.
WordApp.Documents.Add()
rngRange = WordApp.ActiveDocument.Range
rngRange.InsertAfter(hidRTBText.Value)
Dim SpellCollection As Word.ProofreadingErrors
SpellCollection = rngRange.SpellingErrors
If SpellCollection.Count > 0 Then
lstWrongWords.Items.Clear()
lstAlternatives.Items.Clear()
Dim iword As Integer
Dim newWord As String
For iword = 1 To SpellCollection.Count
If SpellCollection.Item(iword).Text <> TextBox2.Text Then
newWord = SpellCollection.Item(iword).Text
lstWrongWords.Items.Add(newWord)
End If
Next
End If