in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Can't set location of User Dictionary

Last post 06-02-2008 7:03 PM by saint168. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 04-07-2008 4:39 PM

    Can't set location of User Dictionary

    Hi,

    I'm having trouble setting the locaiton of the User Dictionary for the C1SpellChecker.  I've tried setting it both programmatically (setting the .UserDictionary.FileName) and through the the designer, but neither way seems to work.  It always just creates a "Custom.dct" file in whatever folder the app is running in, whenever I click my Add button (which does .UserDictionary.AddWord)

    Does anyone know how to set it properly?
     

    Thank you.
     

  • 04-08-2008 2:54 PM In reply to

    • C1_GregL
    • Top 10 Contributor
    • Joined on 06-11-2007
    • Pittsburgh PA
    • Posts 516

    Re: Can't set location of User Dictionary

    You're right, you should just set .UserDictionary.Filename prior to adding any words to the dictionary.  This was a bug that was fixed in version 20081.12.

    http://prerelease.componentone.com/

    Regards,
    Greg

  • 05-28-2008 5:35 PM In reply to

    Re: Can't set location of User Dictionary

    Is it possible to store the custom dictionary in a folder other than the application folder?  I tested the prerelease version which allow me to customize the dictionary filename but I was not able to change the folder.

  • 05-29-2008 12:27 PM In reply to

    • C1_GregL
    • Top 10 Contributor
    • Joined on 06-11-2007
    • Pittsburgh PA
    • Posts 516

    Re: Can't set location of User Dictionary

    I tested version 20082.15 from prerelease and you should still be able to set the user dictionary to any file path.  (The custom dictionary is something different)

    C1SpellChecker1.UserDictionary.FileName = "C:\MyCustom.dct"

    -Greg
  • 06-02-2008 7:03 PM In reply to

    Re: Can't set location of User Dictionary

    Thank you, I got it working.  However, the DesignMode property of C1SpellChecker is not working, it seems to be always true.  I am setting the file name property in the constructor of the base class with a DesignMode check around it.  Somehow, this piece of code always get executed in the designer.

     

     

Page 1 of 1 (5 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.