GetSpellingSuggestions -- 9132

S

Suresh Govindachar

Hello,

I have successfully used the wdWildcard and wdAnagrams
constant with the SuggestionMode argument for the
GetSpellingSuggestions method for Word in Office 98.

But these constants cannot be used with Word 2000
and Word 2003 (see:
http://support.microsoft.com/default.aspx?scid=kb;en-us;224722
).

Is there any way I can use the dll and other files from
Office 98 to beef-up my Word 2003 so that I get support
for these constants? If so, how?

Thanks,

--Suresh
 
H

Howard Kaikow

The KB article mentions only Word 2000.
The constants are defined in the type library for Word 2003.
Have you tried the code in Word 2003?
 
S

Suresh Govindachar

' Following code taken from microsoft example documentation
' Following code gives correct answer "look" on Word 98, but error 9132 on
Word 2003:

Sub DisplaySuggestions()
Dim sugList As SpellingSuggestions
Dim sug As SpellingSuggestion
Dim strSugList As String
Set sugList = GetSpellingSuggestions(Word:="loko",
SuggestionMode:=wdAnagram)
'wdSpellword)
If sugList.Count = 0 Then
MsgBox "No suggestions."
Else
For Each sug In sugList
strSugList = strSugList & vbTab & sug.Name & vbLf
Next sug
MsgBox "The suggestions for this word are: " _
& vbLf & strSugList
End If
End Sub
 
H

Howard Kaikow

wdSpellWord works in Word 2003.
wdAnagram does not, at least not for the built-in spelling engine.
 
S

Suresh Govindachar

I know wdSpellWord works. My question has always been
about wdWildcard and wdAnagrams:

--Suresh
 
H

Howard Kaikow

Neither wdWilcard nor wdAnagrams works in Word 2003 with the default
spelling engine.

You might ask in microsoft.public.word.spelling.grammar.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top