![]() ' WordApp is a local member in the class that's is initialized once and used through the codeĭim customDictionaryFile As System.IO.FileStreamĭim customDictionary As .Dictionaryĭim encoding As Encoding = (1251)īyteArray = encoding.GetBytes(wordToAdd & vbNewLine) ' Add the specified word to custom dictionary The following code works fine with MS Word 2003: Public Sub AddToDictionary(ByVal wordToAdd As String) ![]() I want to support adding words to the custom dictionary so that they are not constantly shown as misseplled words, then refresh the loaded dictionary to recognize the words immediately. I'm trying to use MS Word spell check functionality in my application.
0 Comments
Leave a Reply. |