Am Mi, den 06.04.2005 schrieb Mike Traum um 18:33:
> My understanding is that when using the Bootstrap, you cannot detect
> what version of OOo you're connected to.
>
> So, what is the best practice when you're using services that have
> been newly (or even not so newly) added to the api?
[...]
A long time ago (for Version 1.0.3) I wrote this macro (sorry for long
lines), which reads out a registry key showing the version number of
OOo. Maybe the key is located elsewhere now, but it shows the principle.
If you could tanslate this to java it would do the job.
Sub Main
GlobalScope.BasicLibraries.LoadLibrary("Tools") ' for
GetRegistryKeyContent
Dim oProdNameAccess as Object
Dim sProdName as String
oProdNameAccess = GetRegistryKeyContent("org.openoffice.Setup/Product")
sProdName = oProdNameAccess.getByName("ooName")
sSetupVersion = oProdNameAccess.getByName("ooSetupVersion")
sSetupExtension = oProdNameAccess.getByName("ooSetupExtension")
msgbox sProdName + " : " + sSetupVersion + " : " + sSetupExtension
End Sub
HTH,
Marc
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]