Ask Your Question
0

How to test for LO version in Calc macro? [closed]

asked 2013-04-30 15:16:28 +0100

Gaffer gravatar image

updated 2015-10-31 02:22:35 +0100

Alex Kemp gravatar image

I have a macro that only works correctly in LO 4.0.1.2

I would like to be able to test that the user has this (or later) version installed.

I thought that the cell formula "=INFO("release") might help but that only produces the unhelpful string "84102822e3d61eb989ddd325abf1ac077904985"

How can I test for the version of Libre Office in my macro?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2015-10-31 02:22:52.042854

1 Answer

Sort by » oldest newest most voted
1

answered 2013-05-01 16:27:40 +0100

newOOo3 gravatar image

Hi,

Do you want to know how to get LO Version using macro? If so, you use "GetSolarVersion" or "com.sun.star.configuration.ConfigurationProvider" / "com.sun.star.configuration.ConfigurationAccess". However, 4.0.12 will return value as 4.0.0. You can see the following URL for the sample code; http://openoffice3.web.fc2.com/OOoBasic_General.html#OOoGO18c

edit flag offensive delete link more

Comments

Fabulous. Many thanks.

Gaffer gravatar imageGaffer ( 2013-05-01 18:22:05 +0100 )edit

Question Tools

Stats

Asked: 2013-04-30 15:16:28 +0100

Seen: 187 times

Last updated: May 01 '13