<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Base files macros not being able to run through a command line"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=127214">127214</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Base files macros not being able to run through a command line
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>6.2.4.2 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Base
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>nunoseixas@hotmail.com
</td>
</tr></table>
<p>
<div>
<pre>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:</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>