Word.dllを使用してスペルチェックを行うためのC#コードを作成しています。 http://www.codeproject.com/Articles/2469/SpellCheck-net-spell-checking-parsing-using-CSpellCheck in c#
しかし、私はエラーが取得しています:「型または名前空間名 『言葉』が見つかりませんでしたが(あなたがusingディレクティブまたはアセンブリ参照が不足している?)」
私はリファレンスとして、次のサイトを使用していました私が使用していますコードは次のとおりです。
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);
}
私はちょうど私がそれを動作させることができる方法を知りたい
?
'下Micorsoft.Office.Interop.Wordにrefernceを追加すべきだと思いますか? – Bolu