I'm having trouble implementing the international dictionaries into my application.I create a simple app that has a reference to the .NET 2.0 version of c1Spell (2.2.20073.78).
I then do the following (as a test in a test application):
Dim b As New C1.Win.C1Spell.C1Spell()b.MainDictFile = "C:\Program Files\ComponentOne Studio.NET 2.0\bin\Dictionaries\C1Spell_de-DE.dct"b.IsOptionSettingFixed = FalseDim c as boolean = b.CheckString("TEST")
When it executes the 'CheckString' function, it errors out:
System.IndexOutOfRangeException was caught Message="Index was outside the bounds of the array." Source="C1.Win.C1Spell.2" StackTrace: at C1.Win.C1Spell.C1SpellBase.h.a(Byte[] A_0, Int64 A_1) at C1.Win.C1Spell.C1SpellBase.h.a(Int64 A_0, Boolean A_1, String& A_2) at C1.Win.C1Spell.C1SpellBase.h.a() at C1.Win.C1Spell.C1SpellBase.h.b() at C1.Win.C1Spell.C1SpellBase.b.k() at C1.Win.C1Spell.C1Spell.c() at C1.Win.C1Spell.C1Spell.a(String A_0) at C1.Win.C1Spell.C1Spell.CheckHTMLString(String htmlStr) at Ungerboeck.EBMS.weaNote.CheckSpelling(Boolean ablnAutoCheck) in Data\Temporary Projects\WindowsApplication1\Form1.vb:line 12
Is this a known issue, or do I need to set a few more properties?
Thanks
<craigdUSI> wrote in message news:201695@10.0.1.98... I'm having trouble implementing the international dictionaries into my application.I create a simple app that has a reference to the .NET 2.0 version of c1Spell (2.2.20073.78). I then do the following (as a test in a test application): Dim b As New C1.Win.C1Spell.C1Spell()b.MainDictFile = "C:\Program Files\ComponentOne Studio.NET 2.0\bin\Dictionaries\C1Spell_de-DE.dct"b.IsOptionSettingFixed = FalseDim c as boolean = b.CheckString("TEST") When it executes the 'CheckString' function, it errors out: System.IndexOutOfRangeException was caught Message="Index was outside the bounds of the array." Source="C1.Win.C1Spell.2" StackTrace: at C1.Win.C1Spell.C1SpellBase.h.a(Byte[] A_0, Int64 A_1) at C1.Win.C1Spell.C1SpellBase.h.a(Int64 A_0, Boolean A_1, String& A_2) at C1.Win.C1Spell.C1SpellBase.h.a() at C1.Win.C1Spell.C1SpellBase.h.b() at C1.Win.C1Spell.C1SpellBase.b.k() at C1.Win.C1Spell.C1Spell.c() at C1.Win.C1Spell.C1Spell.a(String A_0) at C1.Win.C1Spell.C1Spell.CheckHTMLString(String htmlStr) at Ungerboeck.EBMS.weaNote.CheckSpelling(Boolean ablnAutoCheck) in Data\Temporary Projects\WindowsApplication1\Form1.vb:line 12 Is this a known issue, or do I need to set a few more properties? Thanks http://helpcentral.componentone.com/cs/forums/p/74224/201695.aspx#201695
Please note that the C1SpellChecker dictionaries are not compatible with the old C1Spell dictionaries.
The new format has better compression and richer semantics. If you want to use an old dictionatry, you have to export it to a text file (using the old DictUtil utility), then convert the text file into a new dictionary (using the new C1DictionaryEditor utility).