Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am writing a code for spell checking a document word by word, but after final line of code it keep processing and i get no response.

code is mentioned below:

Dim oWord As Word.Application = CreateObject("Word.Application")
Dim oDoc As Word.Document = oWord.Documents.Add
Dim itext as string = "aavbnf"
Dim flag As Boolean = oWord.CheckSpelling(itext)
Posted

1 solution

In Using Word's spellchecker in C#[^] you'll find how the author calls Word and invokes it's spell checking functionality. It is old and C#, not VB, but could give you some guidelines.

You could also use OpenOffice for that, check this article NetSpell - Spell Checker for .NET[^] (Spellchecker, Thesaurus, Hyphenation .NET (c#, VB): NHunspell[^]).

--V.Lorz
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900