https://bugs.freedesktop.org/show_bug.cgi?id=45088

             Bug #: 45088
           Summary: : Macros from other Calc documents aren't executed
                    when called
    Classification: Unclassified
           Product: LibreOffice
           Version: LibO 3.4.5 release
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
 Status Whiteboard: BSA
          Severity: normal
          Priority: medium
         Component: Spreadsheet
        AssignedTo: libreoffice-bugs@lists.freedesktop.org
        ReportedBy: zza...@gmail.com


Problem description: 
I have a number of macros that open other calc documents, change them and call
some macros in them. Other calc document is opened like this:

Dim aOdsProps(1) as new com.sun.star.beans.PropertyValue
aOdsProps(0).name = "MacroExecutionMode"
aOdsProps(0).Value = 0
frame = ThisComponent.CurrentController.Frame
MyDoc = frame.LoadComponentFromUrl(uPath, "_default", 0, aOdsProps())

After some manipulation, a macro from opened document is called (the document
is called Pregled.ods, and the macro is FillIndexList):

uMacroUrl = "macro://Pregled/Standard.Module1.FillIndexList"
oDispatch = createUnoService( "com.sun.star.frame.DispatchHelper" )
oDispatch.executeDispatch( StarDesktop, uMacroUrl, "", 0, Array() )

This works as expected in LO 3.3.3 and OpenOffice 3.3, but in LO 3.4.3, 3.4.4
and 3.4.5 simply nothing happens: macro isn't executed (macro should make some
additional changes, but they aren't done, this is how I know that it isn't
executed), and there isn't any error box that says that something is wrong.

Current behavior:
When called, macro from another document isn't executed.

Expected behavior:
After calling macro from another document, it should be executed.

Platform (if different from the browser):
Ubuntu 11.10, LO 3.4.5, 3.4.4, 3.4.3, Mint Debian, LO 3.3.3

Browser: Mozilla/5.0 (Ubuntu; X11; Linux i686; rv:9.0.1) Gecko/20100101
Firefox/9.0.1

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to