Download it now!
Bug 83208 - Macro assigned to document load finished event is not called
Summary: Macro assigned to document load finished event is not called
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
4.3.0.4 release
Hardware: Other All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Macro-UI
  Show dependency treegraph
 
Reported: 2014-08-28 22:05 UTC by Max
Modified: 2019-10-04 10:21 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
example to reproduce bug (11.66 KB, application/vnd.oasis.opendocument.spreadsheet)
2014-09-16 22:26 UTC, Oskar Grindemyr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Max 2014-08-28 22:05:03 UTC
Steps to reproduce:
1) Create a BASIC macro stored in the document with some visible effect, e.g. MsgBox.
2) Assign it to the document load finished event.
3) Close document.
4) Open it and see that macro was not executed.

Seemed to work in 4.2.1

Tested with Writer.
Comment 1 Joel Madero 2014-09-03 21:25:27 UTC
Please attach a simple document with macro. Marking as NEEDINFO - once you attach the simple document please set to UNCONFIRMED. Thanks
Comment 2 Oskar Grindemyr 2014-09-16 22:26:55 UTC
Created attachment 106395 [details]
example to reproduce bug

I created a document as described with a macro assigned to "Document loading finished" and the bug was reproduced in my version.

Version: 4.2.6.3
Build ID: 420m0(Build:3
Comment 3 raal 2014-10-13 14:28:26 UTC
I can confirm with LO 4.2.6,  4.3.4.0.0+ under Linux.

Error message from Version: 4.3.0.0.alpha1+
A Scripting Framework error occurred while running the Basic script vnd.sun.star.script:Standard.Module1.Main?language=Basic&location=document.
Message: The following Basic script could not be found:
library: 'Standard'
module: 'Module1'
method: 'Main'
location: 'document'

The same error message with version 4.3.2, Win7.
No error message in version 4.2.6, 4.3.4.0.0+, Linux.
I can run macro from hand without problem.
Comment 4 QA Administrators 2015-10-14 19:56:17 UTC Comment hidden (obsolete)
Comment 5 Buovjaga 2015-12-02 09:19:06 UTC
Yeah, it doesn't run it on doc load. No error message.

Win 7 Pro 64-bit Version: 5.2.0.0.alpha0+
Build ID: a7c3a2a9be83686657c06f37d521f9f6d2004ddd
Threads 4; Ver: Windows 6.1; Render: default; 
TinderBox: Win-x86@39, Branch:master, Time: 2015-11-28_04:39:18
Locale: fi-FI (fi_FI)
Comment 6 QA Administrators 2017-01-03 19:39:42 UTC Comment hidden (obsolete)
Comment 7 Oskar Grindemyr 2017-01-04 15:57:35 UTC
Still present in 5.2.3.3 tested in Calc on Windows
Comment 8 QA Administrators 2018-01-05 03:42:18 UTC Comment hidden (obsolete)
Comment 9 Buovjaga 2019-08-11 11:29:34 UTC
Still confirmed

Arch Linux 64-bit
Version: 6.4.0.0.alpha0+
Build ID: 37fc9f51a8de11d40632e8cda17ccf1fa4b1f503
CPU threads: 8; OS: Linux 5.2; UI render: default; VCL: gtk3; 
Locale: fi-FI (fi_FI.UTF-8); UI-Language: en-US
Calc: threaded
Built on 6 August 2019