I am writing a c# code for spellchecking using Word.dll. I have used the following site as reference: http://www.codeproject.com/Articles/2469/SpellCheck-net-spell-checking-parsing-using-C
But i am getting an error: "The type or namespace name 'Word' could not be found (are you missing a using directive or an assembly reference?)"
The code that I am using is:
SpellCheck word = new SpellCheck();
bool status = false;
string s = "youes";
Console.WriteLine("Checking for word : " + s );
// check to see if the word is not correct
// return the bool (true|false)
status = word.CheckSpelling(s);
if (status == false)
{
Console.WriteLine("This word is misspelled : " + s);
Console.WriteLine("Here are some suggestions");
Console.WriteLine("-------------------------");
foreach( string suggestion in word.GetSpellingSuggestions(s) )
{
System.Console.WriteLine( suggestion );
}
}
else if (status == true)
{
Console.WriteLine("This word is correct : " + s );
}
I just want to know how can I make it work?
using Word;is this on top of your code?