How to uncover the language version of MS Outlook 2003

G

germul

Hello,

in my program I'm instantiating an object of the type
"Microsoft.Office.Interop:Outlook".
When I want to access Outlook Calendar and get items I have to set a
criteria filter.
Unfortunately there are differences in the criteria between the
English and German version of MS Outlook 2003.

How can my programm find out the LCID or any other unique language
identifier of MS Outlook? Not MS Office! Only MS Outlook itself,
because there is an English version of MS Office but a German Version
of MS Outlook.

Thanks in advance for any hint.

Regards,
Gernut Mulisch
 
G

germul

I found a way which helped me in my case. Sample code in C# :

using System.Runtime.InteropServices;
using MyOutlook = Microsoft.Office.Interop.Outlook;

[...]

MyOutlook.Application app = null;
int iLCID = 0;

[...]

this.app = new MyOutlook.Application();
this.iLCID =
this.app.LanguageSettings.get_LanguageID(Microsoft.Office.Core.MsoAppLanguageID.msoLanguageIDUI);


Regards,
Gernot Mulisch
 

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