How to get current Language of the office appliaction?

W

wangyang

I develop a Word-addin.I need to get the language infomation of the Word in
addin program. How can I do it.
I tried to get it by query the register.
but I consider the way is not reliable in different computer.
 
P

Peter Karlström

Hi

Try <wordobj>.LanguageSettings.LanguageID(msoLanguageIDInstall) where
<wordobj> is your Word application object. You then get the language ID.
If you also have referenses to Office, you can look in Office.msoLanguageID
to find out which language (in clear text) that is installed.
 
Top