This is a migrated thread and some comments may be shown as answers.

Enabling MS Word support

12 Answers 105 Views
Spell
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 10 Sep 2009, 01:45 PM
Hi. I have followed the guide for setting up the MS Word functionality - setup word (i think correclty - is there any way to check this outside of radspell?) and copied the 3 dlls files downlaoded form the forum to the aplpications bin folder.

if i change the provider for the speller, i get a javascript error: could not load type 'telerik.webcontrols.wordspellcheckprovider' from assembly 'mswordadapter, 1.0.0.0.......

i stumbled accorss another post on the forum, but this did not have a solution.

is this now supported in the ajax version of rad spell? if not can you please provide the version of radpsell that does work with MS Word support along with a sample application using it (the ajaxy-ness of the control doesnt really matter to us).

we've been using the phonetic provider but it is very often totally stupid with it's suggestions and is really frustrating for our users (internal on a lan)

thanks

james


12 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 11 Sep 2009, 01:21 PM
Hi James,

I believe that this forum post will be of help.


Greetings,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
James
Top achievements
Rank 1
answered on 11 Sep 2009, 01:33 PM
Hi, thanks for this. I'm confused though. that post (from march) says:
"We have not yet updated the MsWordAdapter assembly to support the RadSpell for ASP.NET AJAX. "

Does that mean it still does not support the word provider?

that post is also talking about the rad editor. i'm not suing the rad editor in this instance - just using radspell to check asp.net textboxes.

if the radpsell for asp.net ajax does not support word is there an older version (AP.net only?) that does support it and if so can i use this instead of the ajax version?

thanks

james
0
Lini
Telerik team
answered on 14 Sep 2009, 11:09 AM
Hello James,

The support for MS word in the old (classic) RadSpell was done via a separate assembly (MSWordAdapter) that needed to be in your web application. Since RadSpell for ASP.NET AJAX requires .NET Framework 2.0 or higher, we decided to stop shipping a separate assembly and give you the code for the MSWordAdapter directly. This way you can either put it in the App_Code folder of your application and use it or you can compile it in your own assembly if you wish. The forum post talks about the RadEditor control, but since the RadEditor uses RadSpell, there is virtually no change to the code. The only thing different is that you set the spellcheck provider type to the RadSpell control directly instead of the editor.

Sincerely yours,
Lini
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
James
Top achievements
Rank 1
answered on 16 Sep 2009, 10:30 AM
Hi. thanks for this. i now have it working.

i have a slgihtl problem now though - when i try to add to a cusotm dictionary from radsepll (with the MS Word provider enabled as above) it doesnt seem to add the word to the dictionary, as the next time it comes accross the word, it sees it as an error again.

We are in the UK so i have changed the language and dictionary language to en-GB as follows:

RadSpell1.SpellCheckProviderTypeName =

GetType(Telerik.Web.UI.WordSpellCheckProvider).AssemblyQualifiedName

 

RadSpell1.Language =

"en-GB"

 

RadSpell1.DictionaryLanguage =

"en-GB"

as i say, it all works, bar the custom dictionary. is there something i need to do to enable this?

Also is there any restriction on the version of word used? i am currnelty using word 2003, but would prefer to use 2007 as it has better support for lazy typing - eg it realises "Im" could be "I'm" where as 2003 doesnt ("Doesn't!).

thanks

James

 

0
James
Top achievements
Rank 1
answered on 16 Sep 2009, 10:49 AM
Further to my last post, even though i''m suign MSWord i've found that when adding a wrd to the custom dictionary, it adds the word to the en-GB-Custom.txt file in the app_data\radspell folder.

radspell does not seem to use this dictionairy when using the MSWord provider, as you would epxect.

how can i fix this? E.g. when adding the word to the custom dictionary, get the word added to the MS Word custom dictionary?
0
James
Top achievements
Rank 1
answered on 16 Sep 2009, 10:59 AM
i think i have found a quick way to do this. Logon tothe server as the word automation user. open word. set the custom dictionary to use the same path as the radspell - eg App_Data\RadSpell\en-GB-Custom.txt

radspell adds the words to this, and word uses this as the custom dictionary. This seems to work OK.
0
James
Top achievements
Rank 1
answered on 16 Sep 2009, 02:42 PM
OK, my problem now is that Word 2007 doesn't allow you to use a file with .txt as a custom dictionary! You can only use.doc files in word 2007. is there a way to change the custom dictionary file in radspell to INCLUDE the file extension?
0
James
Top achievements
Rank 1
answered on 17 Sep 2009, 08:24 AM
Hi. I am still having problems with this. I have tried with both Word 2003 and 2007. There are a few problems with the custom dictionaries. if i point word 2003 at the telerik custom dictionary, it sometimes works, but often having added a word to the dictionary (and looking in the file to verify that it is there) word doesn't see the word as valid.

also (i guess becaseu it is a text file and is being used by a number of concurrent processes) there seems to be a problem when adding ot the custom dictionary. i guess it's becasue it's being used by word and w3wc.exe and has some conflict, but sometimes pressing add custom just hangs the spell checker, then the w3wc.exe process is recycled.

Do you have informtion on a proven way to use the MSWord provider AND custom dictionaries?

thanks
0
Lini
Telerik team
answered on 22 Sep 2009, 11:07 AM
Hello James,

I am attaching a new version of the MS Word provider for RadSpell that should read the spell custom dictionary file correctly. Give it a try and see if it works for you.

Best wishes,
Lini
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
James
Top achievements
Rank 1
answered on 08 Oct 2009, 08:18 AM

Hi Lini, thanks for this and sorry for the dealy in replying.

This works - to a point. I'm using word 2003 again now by the way.

The problems i have now is this:
It adds the words to the custom dictionary OK. Checking in word itself, a Word spell check also uses the words in the custom dictionary. The problem is that the Radspell implementation of the Word spell checker doesn't use the customer dictionary INSIDE WORD, but outside word.

It looks like it does a Word spell check then eternally to this loads in the custom dictionary. Which is mostly fine, except that the custom words are CASE SENSITIVE and also the custom words are not presented in the list of suggestions.

For example, we add (with this case) the words "MWL", "Vikram" and "Solanki" to the custom dictionary on the first use of radspell. Checking in MS Word as the MSWord user, if you type these three words in lower case, they are auto corrected by Word to the Title case values stored in the custom dictionary (as you would expect Word to do) . Also if you type in "Vikrma" instead of "Virkam" word reads the value "Vikram" from the custom dictionary and presents it to the user.

if you follow this example in rad spell, having added "MWL", "Vikram" and "Solanki" to the custom dictionary, ttyping these words in lower case just brings back spell check errors for all three words, which is not desirable. If you get he case right, they match i.e. "Vikram" is valid, while "vikram" or VIKRAM are invalid). We could cope with this, but more frustratingly, the custom word "Vikram" is not presented to the user as a suggested word, even though the word is the same, it is just in a different case.

1) is there a way to make the MSWord adapter use the standard dictionary AND the custom dictionary (the MSWord user which is used to load the word process is using the same custom  .txt file as the radspell control)
2) if not, is there  a way to make the external use of the custom dictionary file a) match words regardless of casing and b) present words from the custom dictionary as suggestions?

thanks again for your help

James

0
Lini
Telerik team
answered on 13 Oct 2009, 02:27 PM
Hi James,

Unfortunately, I am not sure if there is a way to add the MS Word custom dictionary. What the RadSpell provider does is create a dummy Word document and put the text you wish to check there. Then for each individual word in the text we ask Word if there are any spelling errors in it. We don't choose the dictionaries Word will use to check the text apart from setting the language (e.g. English). The only thing we do in addition is to pass the WordIgnoreOptions RadSpell property.

If you want the spellcheck to be case-insensitive, you can try setting WordIgnoreOptions to "WordsWithCapitalLetters,UPPERCASE" in the RadSpell control properties.

Since I gave you the source code of the RadSpell provider for Word, you can modify it and see if you can enable the required functionality yourself.

Greetings,
Lini
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
James
Top achievements
Rank 1
answered on 14 Oct 2009, 09:05 AM
Thanks Lini. I'll have a go a modifying it. I'll have a look at general .net usages of word spell checkers and see if anyone has come across this issue.

thanks

James
Tags
Spell
Asked by
James
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
James
Top achievements
Rank 1
Lini
Telerik team
Share this question
or