Pati123

Hi Guys,

I am a sri Lankan. I want to plug a sinhala Dictionary and validate the spellings, written in sinhala. So when user right click on the spesific word the word i select from the data base has to be shown in the spellin list insead of english. if you have any code or resource which can help me to do this please tell me.

Tharindu (Sri Lanka)



Re: Visual Studio Tools for Office Custom Dictionary Problem

Cindy Meister

Hi Tharindu

Are you working on a VSTO project Is this spelling check supposed to occur in Word, or in some other application






Re: Visual Studio Tools for Office Custom Dictionary Problem

Pati123

HI

Yes sir , I am bulding a Windows add-on. I want to know whether it's possible to give the correct spellings for a wrong word when you right click the word. (Just like in normal word). Can you please give me the details regarding this, Also source code how do you connect the Sinhala Dictionary data base in to word.

Thank you

Tharindu





Re: Visual Studio Tools for Office Custom Dictionary Problem

Cindy Meister

Unfortunately, there is no interface in Visual Studio for implementing spell checking. You'd need to use (and distribute) a third-party application to do the job for you. Or, if you can be certain the users have Microsoft Word installed, you could automate the Word application to check the spelling. Office (I'm looking at the 2007 version, can't be sure about 2003) does have a Sinhala dictionary.




Re: Visual Studio Tools for Office Custom Dictionary Problem

Pati123

Dear Sir,

I am develpoing a Microsoft Word 2007 Add-on. So users should have word 2007 installed in there machine to get this feature. Pleas help us if you have any details or experience about this.

Thanks

Tharindu





Re: Visual Studio Tools for Office Custom Dictionary Problem

Cindy Meister

OK. In Word you set the spelling language by formatting the document text, It's very similar to applying fold formatting or italics. you just have to make sure the proofing tools for the required language are installed if spellcheck should work. you can always format text with a language, even if the proofing tools aren't present, Then the spell checker will just skip the text for which it has no tools. please note there is no way for you (your Add-in) to distribute or install the proofing tools for a language, the owner of the computer must do so. If it's a language included in the office version, it's a matter of running Setup in customize mode. For other office versions, the proofing tools CD must be purchased. For office 2007 this proofing tool package is not yet available.

The most straightforward way to format text with a language is to do something like:

ActiveDocument.Content.LanguageID=wdSinhalese

However, you need to be aware of how Word deals with language formatting, which can be very complicated. The details are summarized in the following article:

http://homepage.swissonline.ch/cindymeister/MyFavTip.htm#LangFormat






Re: Visual Studio Tools for Office Custom Dictionary Problem

Pati123

Hi Guys,

Need to know how to plug a Custom Dictionary to Office word using C#. We need to plug Sinhala(Lanuage of Sri Lanaka) Dictionary.

Also need a way to disable the word or close it when its in Visible= False state.

Thanks

Tharindu





Re: Visual Studio Tools for Office Custom Dictionary Problem

Cindy Meister

Hi Tharindu

Your requirements aren't clear. A custom dictionary cannot be added if a main dictionary for the language isn't already installed. Adding a custom dictionary for special terms not contained in the main dictionary is simple enough: use the CustomDictionaries.Add method of the Application object.

As long as your application code has a member field for the Word application object you can always use the Quit method of that object to terminate Word, even if it is not visible.






Re: Visual Studio Tools for Office Custom Dictionary Problem

Pati123

Hi Sir,

To plug a sinhala Dictionary do we have to use proofiling tools. We could not find it any where, tell us in what site or cds where we can find this tools.

Thanks

Tharindu





Re: Visual Studio Tools for Office Custom Dictionary Problem

Cindy Meister

Hi Tharindu

What's available and how you can obtain it depends on the version of Office involved, your volume licensing type, and where you're located. Start by going to microsoft.com and search these terms:

Office Proofing Tools

That should turn up a few links with basic information. For more detailed information applicable to your exact situation I recommend you contact your local Microsoft agency.

If you're a developer, please note that it's not possible for you to get proofing tools and a license to distribute with your application. anyone running your application would need to purchase and install the proofing tools.