SpiceLogic Inc.
                                                                                                     SpiceLogic Inc. Home PageProductsJournalMy AccountHelp DeskContact Us
 
Knowledge base  : .NET Win HTML Editor Control    - Standard Edition
Welcome Guest   Login

Skip Navigation Links. .NET Win HTML Editor Control

Documentation  Documentation

Download   Download the latest version

Back to the home of knowledgebase forum Setting Dictionary File for Spell Checker wont work.

An user   12/7/2009 8:17:50 PM

Here is the problem... I want the user to be able to switch languages using a drop down...

I was able to load the dictionary this way.
HtmlEditor1.SpellCheckDictionary.DictionaryFolder = Application.StartupPath + "\Spellchecker"
HtmlEditor1.SpellCheckDictionary.DictionaryFile = "en-US.dic"

I thought:
HtmlEditor1.SpellCheckDictionary.DictionaryFolder = Application.StartupPath + "\Spellchecker"
HtmlEditor1.SpellCheckDictionary.DictionaryFile = "es-es.dic"
Nope... it keeps the english language dictioary open...

I thought:
HtmlEditor1.SpellCheckDictionary.Initialize()
HtmlEditor1.SpellCheckDictionary.DictionaryFolder = Application.StartupPath + "\Spellchecker"
HtmlEditor1.SpellCheckDictionary.DictionaryFile = "es-es.dic"
No luck...

I thought:
Dim dic as new netspell.spelldictionary.....
dic.SpellCheckDictionary.DictionaryFolder = Application.StartupPath + "\Spellchecker"
dic.SpellCheckDictionary.DictionaryFile = "es-es.dic"
HtmlEditor1.SpellCheckDictionary=dic
Nope (HtmlEditor1.SpellCheckDictionary) is readonly....

Any ideas?

Thanks,
Faisal

By the way... superb component... wish it had a ribbon control to look a bit more modern.





Resolution:
- [SpiceLogic Support Technician]   12/11/2009 2:37:48 AM

Dear Faisal,
 
Thank you for your compliments. I have checked the issue and found that, your reported bug is correct. We will fix the problem in the next version, but for a quick work around, please use the following snippet to set a dictionary file,
 
            htmlEditor1.SpellCheckDictionary.DictionaryFile = "es-ES.dic";
            htmlEditor1.SpellCheckDictionary.Initialize();
            htmlEditor1.SpellCheckDictionary.DictionaryFile = "es-ES.dic";

Yes, that means, if you set a dictionary file and after that, if you initialize the dictionary and then set the file again, it will work. If you dont follow this sequence, you will get the old dictionary file open as you reported.



Home  || Products  || Journal  || My Account  || HelpDesk  || Contact Us

Website and Software Copyright ©2010, SpiceLogic Inc., All Rights Reserved.