How to uncover the language version of MS Outlook 2003

  • Thread starter Thread starter germul
  • Start date Start date
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
 
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
 
Back
Top