Guest Guest
|
Posted: Tue May 27, 2003 6:40 am Post subject: Macro to set dictionary locale in OO.o |
|
|
I've properly installed the French dictionary files to the OpenOffice installation directory. For the auto-spellcheck, I'd like to be able to set the language setting for the document using a macro -- later based on user input. However, what I've got so far claims that the vDict object variable is not being set. Any ideas?
| Code: |
Sub SetDictionary
Dim vDict as object
Dim aLocale As New com.sun.star.lang.Locale
aLocale.Language = "fr"
aLocale.Country = "FR"
vDict = createUnoService("com.sun.star.linguistic2.XDictionary")
vDict.setLocale(aLocale)
Msgbox "success"
End Sub
|
|
|