tags:

views:

46

answers:

2

Hi,

Is there any way to know which version of MS-Office I have on my pc using 'Java'?

+1  A: 

Is there a specific file in the installation of ms office that distinguishes one version from another? If yes you could read that and detect.

Other you'd have to do nasty interfacing with the possibly installed (to the o/s) ms office activex controls and query the version number.

cherouvim
+2  A: 

I can suggest you a bit tricky work around:

You can easily get list of installed fonts. Different versions of MS-Office have different unique fonts. You need to google which fonts correspond to which version and it can give you some information (for example, if you can see 'Constantia' then it's office 2007).

Roman