[Libreoffice-bugs] [Bug 127214] New: Base files macros not being able to run through a command line

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Aug 29 11:57:54 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=127214

            Bug ID: 127214
           Summary: Base files macros not being able to run through a
                    command line
           Product: LibreOffice
           Version: 6.2.4.2 release
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Base
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: nunoseixas at hotmail.com

Description:
I was trying to run a macro stored in a Base file like this:

soffice "C:\Users\nuno\AppData\Roaming\LineMap.odb"
"macro://LineMap/Reports.Report.genRep"

However it doesn't work.

A friend have debugged, and in SfxMacroLoader::loadMacro, the call to
SfxObjectShell::GetFirst() returns nullptr - it means that the open database
isn't listed among open shells - and thus doesn't offer the expected
functionality (unlike Writer or Calc components)


Steps to Reproduce:
1. soffice "C:\Users\nuno\AppData\Roaming\LineMap.odb"
"macro://LineMap/Reports.Report.genRep"


Actual Results:
Open file but doesn't fire up the macro

Expected Results:
Fire up the macro


Reproducible: Always


User Profile Reset: No



Additional Info:

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190829/420aa224/attachment-0001.html>


More information about the Libreoffice-bugs mailing list