Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tryign to create Dictionary object based on English

Status
Not open for further replies.

gib99

Programmer
Mar 23, 2012
51
0
0
CA
Hello,

I would like to create a Microsoft.Office.Interpol.Word.Dictionary object that's based on the English language but with additional words. How can

I do that?

Here is the constructor for my SilcoreseDictionary class:

Code:
    class SilcoreseDictionary : Microsoft.Office.Interop.Word.Dictionary
    {
        private Microsoft.Office.Interop.Word.Application _application = null;

        public SilcoreseDictionary()
        {
            _application = new Microsoft.Office.Interop.Word.Application();

            Microsoft.Office.Interop.Word.Language localLanguage = null;
            foreach (Microsoft.Office.Interop.Word.Language l in _application.Languages)
            {
                if (l.Name.Contains("English (US)"))
                {
                    localLanguage = l;
                    break;
                }
            }

            if (localLanguage != null)
            {
                // make this a copy of localLanguage.ActiveSpellingDictionary
            }
        }
    }

I would like to make the SilcoreseDictionary class a copy of the ActiveSpellingDictionary of the English (US) language that it finds in the

Application's language list. I would then like to add more vocabulary to it. Is this possible?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top