Articles   Members Online:
-Article/Tip Search
-News Group Search over 21 Million news group articles.
-Delphi/Pascal
-CBuilder/C++
-C#Builder/C#
-JBuilder/Java
-Kylix
Member Area
-Home
-Account Center
-Top 10 NEW!!
-Submit Article/Tip
-Forums Upgraded!!
-My Articles
-Edit Information
-Login/Logout
-Become a Member
-Why sign up!
-Newsletter
-Chat Online!
-Indexes NEW!!
Employment
-Build your resume
-Find a job
-Post a job
-Resume Search
Contacts
-Contacts
-Feedbacks
-Link to us
-Privacy/Disclaimer
Embarcadero
Visit Embarcadero
Embarcadero Community
JEDI
Links
Language for MS Office Turn on/off line numbers in source code. Switch to Orginial background IDE or DSP color Comment or reply to this aritlce/tip for discussion. Bookmark this article to my favorite article(s). Print this article
09-Jun-03
Category
OLE
Language
Delphi 2.x
Views
68
User Rating
No Votes
# Votes
0
Replies
0
Publisher:
DSP, Administrator
Reference URL:
DKB
			Author: Mike Shkolnik

How can I read the default language of installed MS Office application?

Answer:

you may initialize Word.Application instance and read a CountryID: 

1   var
2     word: Variant;
3   begin
4     word := CreateOLEObject('Word.Application');
5     CountryID := word.System.Country;
6     word.Quit;
7     word := UnAssigned;
8   end;
9   
10  After that check this CountryID with next values: 
11  
12  wdUS = $00000001;
13  wdCanada = $00000002;
14  wdLatinAmerica = $00000003;
15  wdNetherlands = $0000001F;
16  wdFrance = $00000021;
17  wdSpain = $00000022;
18  wdItaly = $00000027;
19  wdUK = $0000002C;
20  wdDenmark = $0000002D;
21  wdSweden = $0000002E;
22  wdNorway = $0000002F;
23  wdGermany = $00000031;
24  wdPeru = $00000033;
25  wdMexico = $00000034;
26  wdArgentina = $00000036;
27  wdBrazil = $00000037;
28  wdChile = $00000038;
29  wdVenezuela = $0000003A;
30  wdJapan = $00000051;
31  wdTaiwan = $00000376;
32  wdChina = $00000056;
33  wdKorea = $00000052;
34  wdFinland = $00000166;
35  wdIceland = $00000162;


			
Vote: How useful do you find this Article/Tip?
Bad Excellent
1 2 3 4 5 6 7 8 9 10

 

Advertisement
Share this page
Advertisement
Download from Google

Copyright © Mendozi Enterprises LLC