Apache OpenOffice (AOO) Bugzilla – Issue 26735
macro recorder records incomplete macro
Last modified: 2013-08-07 14:38:26 UTC
In version 1.1.1.rc2 the macro recorder always don't function!!! How it doesn't function? Recodering an macro and opening for ex. file open an existining document copy something and paste it in the document where i recorder the macro, only the function paste ist active, nothing else. thanks for your attention grüsse stefan
set Prio P1 -> P3
Hello Stefan, without wanting to insult you, due to lack of clear language it is very difficult to follow your description. Please give a step by step description for reproducing it. Thank you, Max Weber OOo Volunteer
here more infos try follow, open a new text document, use tools macro macro recorder, now i wan't an automatism who is coping the header from another text document in this acutaly text document so i open the original document with file open then i select the text and grafiks in the header copy it, close the file, next i activate my header in the new text document and i paste it. in the macro is only only the paste written and something strange, and it don't work cu stefan
Hi Stefan, >>try follow, open a new text document, use tools macro macro recorder, >>now i wan't an automatism who is coping the header from another text document >> in >>this acutaly text document >>so i open the original document with file open then i select the text and >>grafiks in the header copy it, ok, until this i can follow with 1.1.1rc3 linux build, but when i >> close the file, i get the following message: "Do you really want to cancel the recording? Any steps recorded up to this point will be lost." If you close the file and continue afterwards it will not work.
hello, it`s good that it don't function too. I use win xp and OOo 1.1.1rc2 english. the macro recorder give no information, what displayed on you. i tried to let the original document open, and changed to the new docuemnt and paste the selected header. it always don't function. grüsse stefan
could you retest with a 1.1.1rc3 if possible? Thanks Max
ok i will try it, first i must donwlaod it, it came out only a few days ago then i will let you know grüsse stefan
Here my new testing result, it don't function. I've seen I must forget it, mybe it will function in 2.0 but i don't think so. For me it's coming a delusion more and more. see below what the macro-recorder recordered it! nowhere is shown opening a document and ... REM ***** BASIC ***** Sub Main End Sub sub train1 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 ---------------------------------------------------------------------- dim args1(1) as new com.sun.star.beans.PropertyValue args1(0).Name = "PageStyle" args1(0).Value = "Standard" args1(1).Name = "On" args1(1).Value = true dispatcher.executeDispatch(document, ".uno:InsertPageHeader", "", 0, args1()) rem ---------------------------------------------------------------------- rem dispatcher.executeDispatch(document, ".uno:Open", "", 0, Array()) rem ---------------------------------------------------------------------- dispatcher.executeDispatch(document, ".uno:Paste", "", 0, Array()) end sub grüsse stefan
confirmed with 1.1.1rc3 here is the basic code that OOo recorded in my session: REM ***** BASIC ***** sub Main 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 ---------------------------------------------------------------------- rem dispatcher.executeDispatch(document, ".uno:Open", "", 0, Array()) rem ---------------------------------------------------------------------- dispatcher.executeDispatch(document, ".uno:PageDialog", "", 0, Array()) rem ---------------------------------------------------------------------- dispatcher.executeDispatch(document, ".uno:Paste", "", 0, Array()) end sub
changing description
reassigned to JSK
To make it short: 1. open existing document 2. copy content from header to clipboard 3. close document 4. open a new, blank document 5. paste header content to new document Expected result: Header is inserted into new document Nothing of this happens. There are several known issues invoved here: 1. Macros do not work with multiple documents 2. Inserting headers/footers does not work 3. ... According to the OpenOffice.org PCDs i set this task to OOo Later, changing 'defect' to 'feature'. Please read http://framework.openoffice.org/proposals/macro/macrorecording.html for more details about macro recording and why this does - and will - not work.
Duplicate to issue 26116 *** This issue has been marked as a duplicate of 26116 ***
close