Apache OpenOffice (AOO) Bugzilla – Issue 61894
Macro recorder fails to record in Format > Page dialog
Last modified: 2013-08-07 14:38:26 UTC
Macro recorder, while doing a fine job by recording entries in Format > Character, does not record information entered in Format > Page. The following macro resulted when trying to record a macro that (1) changes the page margins to 1.5 inches and (2) changes the default text to be spaced 1 point wider: sub MarginTest rem ---------------------------------------------------------------------- rem define variables dim document as object dim dispatcher as object rem ---------------------------------------------------------------------- rem get access to the document document = ThisComponent.CurrentController.Frame dispatcher = createUnoService("com.sun.star.frame.DispatchHelper") rem ---------------------------------------------------------------------- dispatcher.executeDispatch(document, ".uno:PageDialog", "", 0, Array()) rem ---------------------------------------------------------------------- dim args2(0) as new com.sun.star.beans.PropertyValue args2(0).Name = "Spacing" args2(0).Value = 20 dispatcher.executeDispatch(document, ".uno:Spacing", "", 0, args2()) end sub Argument name and value are created for the font spacing, but when played back, the macro merely opens the Format > Page dialog. In both Format dialogs, margin and character width values were keyed in (that is, spinners were not used) and "OK" clicked on to close the dialog.
Reassigned to JSK.
confirmed with 680_m156 on WinXP Pro SP2
Hi dgehman, you just found one more of the non-working items of the macro recorder. We have no timeline for Macro Recorder issues so chances are that this will not be fixed in our lifetime. :-( Adjusting platform, os, target, owner, set dep to issue 20046
i set dupe and close this one *** This issue has been marked as a duplicate of 20046 ***
close, we'll track this in the meta-bug