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.
 

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