In a document did I put these button:

The name of the button is "JaNein":

So did I assign the button:

If I activate the button, it appears these error alert:

What error did I do?
Thank you very much for your help
Gianni
Code: Select all
JaNein = Thiscomponent. ... etc ... .
Code: Select all
oDP = ThisComponent.DrawPage
oForms = oDP.Forms
oF = oForms.getByIndex(0)
oJaNein = oF.getByName("JaNein")
print oJaNein.Label
I cannot remember to have yesterday changed anything in the FJCC's example file. What I remember is that I was extremely surprised for the appearing of the code of a file which I had written before the changes of FJCC. I tried again and again and again and again. Always appeared my old code when I had loaded only the file of FJCC in the program APACHE OpenOffice Portable 4.1.3 which I installed with PortableApps in my USB-Stick.Zizi64 wrote:The FJCC's example file works fine in my AOO portable 4.1.3 and LO 4.4.7, and LO portable 5.2.3
The name of the Button object is 'Button1' in the FJCC's example file.
As I see it, you have tried actualize the example macro code for your file. Don't forget to change the object name in the code snippet (or the name of your button...)
...or please upload again your actualized example file here...
note:
the embedded macro code located in the example file will work in that specific document only. You must place the code into a Module of the MyMacros/Standard directory of the office suite - if you want use it with other documents....
It is unbeliveable...OpenOffice (PortableApps) loads the text of the file of FJCC together with the code of my old file!
It is unbelieveable...Zizi64 wrote:It is unbeliveable...OpenOffice (PortableApps) loads the text of the file of FJCC together with the code of my old file!
I tried it again with FJCC's file in my AOO PORTABLE 4.1.3. version, and it works fine. (There is not installed the Tortable Apps frame application, but only installed the AOO portable.)
The macro is stored in the file, and that code is associated to the "Execute action" event of the button named 'Button1'. The name of the macro is 'Main'.
(I usually use the event named "Mouse button pressed".)
http://portableapps.com/apps/office/openoffice_portableA last question, Zizi64 please: from what source did you get OpenOffice 4.1.3 portable? Could it be, that the program from PortableApps has more bugs than others?
I think, it is not a bug. (I have 32 bit JRE on my Win7 PC.)I think that I can now definitely say that my OpenOffice has a bug.
It is a severe case of wrong design. LO has still the same dependencies as OpenOffice with the exception of some obscure "helpers" under File>Wizards... It is very easy to check out. Just turn off Java in the options and walk through the list of JRE dependent features we collected in viewtopic.php?f=74&t=69896Zizi64 wrote:I think, it is not a bug. (I have 32 bit JRE on my Win7 PC.)I think that I can now definitely say that my OpenOffice has a bug.
The AOO has a higher dependency of the JRE than the LibreOffice. The developer team of the LibreOffice forces to reduce the JRE-dependency of the LibreOffice.
(The AOO is developed very slowly now.)
You must have a lot of patience to click away these warnings 15 (fifteen) times on every change.Villeroy wrote: If you patiently click away these warnings everything works as expected.
Apart from the OpenOffice name and logo there is nothing to synchronize with OpenOffice.Johnny John wrote:I cannot understand why the OpenOffice and the LibreOffice teams cannot agree about synchronizing their products.
I cannot understand why the OpenOffice and the LibreOffice teams cannot agree about synchronizing their products.
See the History part of this page:"LibreOffice is the most actively developed free and open source office suite, a project of The Document Foundation. It was forked from OpenOffice.org in 2010..."