in

C1 Community

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

REPOST: Programmatically locating the CUSTOM.DIC file...

Last post 07-05-2007 11:54 AM by danyeungw. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 05-12-2004 7:52 AM

    REPOST: Programmatically locating the CUSTOM.DIC file...

    I have a program (written in VB.NET) that I would like to add spell checking
    as an option. I am able to use the C1Spell for .NET just fine but when the
    check spelling dialog box comes up I would like to point the custom
    dictionary to the user's CUSTOM.DIC. This program uses lots of technical
    terms and names that the users will already have put into their custom
    dictionary via Microsoft Word or Outlook, etc. and do not want to reenter
    them. On my machine the file CUSTOM.DIC is in:

    C:\Documents and Settings\Bobby\Application Data\Microsoft\Proof

    but I cannot be guarenteed of that for other users on other machines. I'm
    trying to find out how to locate the commonly used (by that I mean the one
    that Word or Outlook uses) CUSTOM.DIC file so that at program startup I can
    supply the full path to the CustomDictFiles property in C1Spell.

    Hope that helps explain a little more what I am trying to do. Thanks!

    --

    Bobby C.
    Proper reply address is without the text -REMOVE-



    Click here to view the original newsgroup article (read only).

  • 05-12-2004 4:30 PM In reply to

    Re: REPOST: (ANSWERED!!!) Programmatically locating the CUSTOM.DIC file...

    Gerrit wrote:
    > Have a look at Environment.GetFolderPath(). It allows you to retrieve
    > the different directories, such as the ApplicationData directory for
    > the current user.
    >
    > HTH,
    >
    > Gerrit
    >
    > "Bobby C." wrote in message
    > news:40a239cd@vger5.componentone.com...
    >> I have a program (written in VB.NET) that I would like to add spell
    >> checking as an option. I am able to use the C1Spell for .NET just
    >> fine but when the check spelling dialog box comes up I would like to
    >> point the custom dictionary to the user's CUSTOM.DIC. This program
    >> uses lots of technical terms and names that the users will already
    >> have put into their custom dictionary via Microsoft Word or Outlook,
    >> etc. and do not want to reenter them. On my machine the file
    >> CUSTOM.DIC is in:
    >>
    >> C:\Documents and Settings\Bobby\Application Data\Microsoft\Proof
    >>
    >> but I cannot be guarenteed of that for other users on other
    >> machines. I'm trying to find out how to locate the commonly used
    >> (by that I mean the one that Word or Outlook uses) CUSTOM.DIC file
    >> so that at program startup I can supply the full path to the
    >> CustomDictFiles property in C1Spell.
    >>
    >> Hope that helps explain a little more what I am trying to do.
    >> Thanks!
    >>
    >> --
    >>
    >> Bobby C.
    >> Proper reply address is without the text -REMOVE-

    Gerrit,

    That worked perfect! I simply tacked on the "\Microsoft\Proof\CUSTOM.DIC"
    and checked for the file's existence. With the file located I could use my
    default custom dictionary. Thank you very very much...!!

    --

    Bobby C.
    Proper reply address is without the text -REMOVE-



    Click here to view the original newsgroup article (read only).

  • 05-12-2004 5:44 PM In reply to

    Re: REPOST: Programmatically locating the CUSTOM.DIC file...

    Have a look at Environment.GetFolderPath(). It allows you to retrieve the
    different directories, such as the ApplicationData directory for the current
    user.

    HTH,

    Gerrit

    "Bobby C." wrote in message
    news:40a239cd@vger5.componentone.com...
    > I have a program (written in VB.NET) that I would like to add spell
    checking
    > as an option. I am able to use the C1Spell for .NET just fine but when
    the
    > check spelling dialog box comes up I would like to point the custom
    > dictionary to the user's CUSTOM.DIC. This program uses lots of technical
    > terms and names that the users will already have put into their custom
    > dictionary via Microsoft Word or Outlook, etc. and do not want to reenter
    > them. On my machine the file CUSTOM.DIC is in:
    >
    > C:\Documents and Settings\Bobby\Application Data\Microsoft\Proof
    >
    > but I cannot be guarenteed of that for other users on other machines. I'm
    > trying to find out how to locate the commonly used (by that I mean the one
    > that Word or Outlook uses) CUSTOM.DIC file so that at program startup I
    can
    > supply the full path to the CustomDictFiles property in C1Spell.
    >
    > Hope that helps explain a little more what I am trying to do. Thanks!
    >
    > --
    >
    > Bobby C.
    > Proper reply address is without the text -REMOVE-
    >
    >
    >

    Click here to view the original newsgroup article (read only).

  • 07-05-2007 11:54 AM In reply to

    Re: REPOST: Programmatically locating the CUSTOM.DIC file...

    Hi Bobby,

    I am working on adding spell check on a web application.  I haven't figured out how to read the dictionary.dic file and created a suggestion list for the user.  Would you share your code?  You are welcome to contact me here or via my email danyeungw@hotmail.com.  I will appreciate your help.  Thanks.

    DanYeung

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