I worked with this the other day and thought I wanted to share my conclusions and add a little to the answers already provided.
You're asking:
I want to check which spelling is incorrect and, accordingly, get suggestions for incorrect words.
(...)
I just wanted to know what the whole βref objectβ means? I want to find out their meaning.
The short answer to this question is to look at the documentation .
To show you how the GetSpellingSuggestions method can be used in a more complete context, I included the following program in it. Please note that you can change the desired verification language using the language variable. The code is as follows:
using System; using Microsoft.Office.Interop.Word; namespace WordStack { public class Program { private static void Main() {
... which give me the following three sentences: overflow, overflow and overflow.
This example was implemented using .NET 4.5 and version 15 of the Word Interop API (Office 2013).
Note that this sample also solves your comment on one of the answers already received, saying:
(...) He works. But Microsoft Word app appears every word. Is there a way to get a spelling suggestion without allowing a popup of a Microsoft application?
Personally, I have not experienced this behavior (either using the GetSpellingSuggestions methods or the CheckSpelling available in the Application instance).
However, if you call CheckSpelling on an instance of Document , it will be as described in the documentation , it will display the Spelling dialog box if one or more words with errors are found (provided that during the construction of the instance Word Application to Visible for true ), otherwise it will wait for input in the background, which will cause the application to βfreezeβ,).