PDA

View Full Version : MS Office Spellchecker override



NikosIEL
02-18-2005, 07:11 AM
Hi
I'm trying to implement a Greek spellchecker and syntax analyzer in microsoft (http://www.tek-tips.com/viewthread.cfm?qid=1008625&page=1#) office. I've build the .dot files and dll's and program (http://www.tek-tips.com/viewthread.cfm?qid=1008625&page=1#) is working fine on any ms office version from 97 to 2003. The problem is when I try to load my template to an office installation with Greek proofing tools.

The spellchecker works like this: when you highlight a text and press F7 the spellchecker comes up. If the text is in english the normal spellchecker that comes with office is used. If the text is Greek, my spellchecker is chosen instead of the office one automatically.

However if I install my template on an office installation which already has greek proofing tools, when I press F7 with greek text selected my spellchecker doesn't come up anymore. It uses the office one (with the greek dictionary from proofing tools) and I cannot seem to override it.

Does anyone know a possible to solution (http://www.tek-tips.com/viewthread.cfm?qid=1008625&page=1#) to this?

Thanks in advance
Nik

sandam
02-18-2005, 08:14 AM
Have you got the code to show what your doing? it might be as simple as an if statement to fix or maybe more complex

NikosIEL
02-18-2005, 08:30 AM
Have you got the code to show what your doing? it might be as simple as an if statement to fix or maybe more complex

My problem doesn't have to do with the program itself i think but more with the office API. Somehow i need to find a way to override the default greek lexico tools and use mine instead.

sandam
02-18-2005, 08:51 AM
check your event procedure and see what the dictionary is set to as well

something like below although I'm not too sure on office api calls and events



Private Sub KeyPressed(variables)

If KeyPressed = "F7" Then
If isEnglish(Selection.Text) Then
use standard office spellchecker dictionary
Elseif isGreek(Selection.Text)
use my spellchecker dictionary
End if
CheckTheWordOut
End If

End Sub



does this make sense/offer help?