Hi all,

I'm doing some changes on the OOo configuration tree using macro basic.

The settings seem correctly changed in the basic macro code, but they are not 'seen' in the main OOo application until I restart the application itself.

Now some pseudo code and operation sequence, OOo is 2.4.1

1) first check that the menu Tools > Options - General Save - [Section] Save, the "Always create backup copy" is unchecked, then:

2) using macro basic code open the configuration root element, for update:

REM  *****  BASIC  *****

Sub Main
        GlobalScope.BasicLibraries.LoadLibrary("Tools")
oTheConfigRoot = GetRegistryKeyContent("org.openoffice.Office.Common/", true)
        oTheConfigRoot.Save.Document.CreateBackup = true
        oTheConfigRoot.commitChanges()
End Sub

rem ******** end basic

at this time opening the menu Tools > Options - General Save - [Section] Save, the "Always create backup copy" checkbox should be checked, but it's not.

It is indeed checked when I restart OOo.

It seems as if the macro basic environment and the OOo application are working on different copies of the configuration that are reconciled when the application closes.

I wonder if I'm doing something wrong here...

Is there a way to have OOo take charge of the new configuration set by the basic code shown here without restarting?

TIA

--
Kind Regards,
Giuseppe Castagno
Acca Esse http://www.acca-esse.eu
[EMAIL PROTECTED]
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to