Returning Word Spelling Suggestions

Dear Community,

I need to return the spelling suggestions only from the Microsoft Word spell checker in Visual Basic. I know that there are more options and such in the built-in one in Microsoft Word, but I only need the offered spelling suggestions from Word.

Thanks in advance,

Eric N.

[415 byte] By [cpuwiz2012] at [2008-1-9]
# 1

cpuwiz2012,

According to your demand on adding the spelling suggestions of Word in your VB.NET application, I would like to provide the suggestions as follows:

1. Please add the reference of Microsoft Word Object Library in your "Add Reference ->COM tab", then create Application and Document object. Please call the CheckSpelling method when you use the Range object, then SpellingErrors array will be filled in with all the misspelled words. Each SpellingErrors has a Suggestion array of replacemet words

2. Please take a look at the SpellingSuggestion Object that represents a single spelling suggestion for a misspelled word. The SpellingSuggestion object is a member of the SpellingSuggestions collection. The SpellingSuggestions collection includes all the suggestions for a specified word or for the first word in the specified range.

3. You can also try to use some other sample on the spell check applications.

Hope that can help you.

BrunoYu-MSFT at 2007-10-3 > top of Msdn Tech,Visual Basic,Visual Basic General...