hi,
i'm wondering if anyone can shed some light on this. i'm have an application that utilizes the spelling engine within Office and i'd like to be able to "check spelling" only against a specified dictionary file.
here's some example code for spell checking with the default dictionary:
the
method does in fact allow you to specify additional custom dictionaries, however, i'm unsure about how to pass these reference items in. is it just an object with an assigned value such as
?
additionally, is it possible to specify that the default dictionary NOT be used. ideally i'd like to be able to have this method use a dictionary file that is not associated with MSOffice. i plan to include this .dic file with the distributed app. any assistance is greatly appreciated. thanks in advance...
..:mirirom:..
i'm wondering if anyone can shed some light on this. i'm have an application that utilizes the spelling engine within Office and i'd like to be able to "check spelling" only against a specified dictionary file.
here's some example code for spell checking with the default dictionary:
Code:
Word.ApplicationClass appWord = new Word.ApplicationClass();
object filler = System.Reflection.Missing.Value;
object appOpts = Word.WdSaveOptions.wdDoNotSaveChanges;
string strSomeString = "misxspelled wordz";
bool blnWordFound;
appWord.Documents.Add();
//returns false if string argument(s) are misspelled
blnWordFound = appWord.CheckSpelling(strSomeString,
ref filler, ref filler, ref filler, ref filler,
ref filler, ref filler, ref filler, ref filler,
ref filler, ref filler, ref filler, ref filler);
the
Code:
ApplicationClass.CheckSpelling()
Code:
object custDict = "someDictionary.dic"
additionally, is it possible to specify that the default dictionary NOT be used. ideally i'd like to be able to have this method use a dictionary file that is not associated with MSOffice. i plan to include this .dic file with the distributed app. any assistance is greatly appreciated. thanks in advance...
..:mirirom:..