Apache OpenOffice (AOO) Bugzilla – Issue 60603
calling .uno:ChangePrintArea in StarBasic CRASHES OOo
Last modified: 2013-08-07 15:13:21 UTC
I recorded (usng Macro -> Record Macro) in Calc to modify PrintRepeatRow. When running this macro, OOo CRASHES, and this cannot be trapped in code (via "on error goto"). Actual code in the macro: dim args2(2) as new com.sun.star.beans.PropertyValue document = ThisComponent.CurrentController.Frame dispatcher = createUnoService("com.sun.star.frame.DispatchHelper") args2(0).Name = "PrintArea" args2(0).Value = "" args2(1).Name = "PrintRepeatRow" args2(1).Value = "$A$1:$G$1" args2(2).Name = "PrintRepeatCol" args2(2).Value = "" ' next line CRASHES OOo dispatcher.executeDispatch(document, ".uno:ChangePrintArea", "", 0, args2()) ' however this one is fine dispatcher.executeDispatch(document, ".uno:EditPrintArea", "", 0, args2())
Can confirm, same version and platform as report. To reproduce, just copy and paste code into a new macro, and run.
Hi Joerg, please have a look at this one and target as needed. Frank
Confirmed. Looks as if the API call fails -> CN Set target, increased priority
cn->nn: it seems to be a problem of clac.
for nn
Fixed on CWS "calc36". Changed: tabvwsh3.cxx 1.26.154.1 scmod.cxx 1.46.114.1
back to QA for verification re-open issue and reassign to fst@openoffice.org
reassign to fst@openoffice.org
reset resolution to FIXED
found fixed on cws calc36. Checked on Linux, Solaris and Windows
found integrated on master m167 using Linux, Solaris and Windows build
*** Issue 64118 has been marked as a duplicate of this issue. ***