Issue 60603 - calling .uno:ChangePrintArea in StarBasic CRASHES OOo
Summary: calling .uno:ChangePrintArea in StarBasic CRASHES OOo
Status: CLOSED FIXED
Alias: None
Product: Calc
Classification: Application
Component: programming (show other issues)
Version: OOo 2.0.1
Hardware: PC Windows XP
: P2 Trivial (vote)
Target Milestone: ---
Assignee: frank
QA Contact: issues@sc
URL:
Keywords: oooqa
: 64118 (view as issue list)
Depends on:
Blocks:
 
Reported: 2006-01-16 03:53 UTC by joegyorkos
Modified: 2013-08-07 15:13 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description joegyorkos 2006-01-16 03:53:41 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())
Comment 1 dridgway 2006-01-16 08:55:58 UTC
Can confirm, same version and platform as report. To reproduce, just copy and
paste code into a new macro, and run.
Comment 2 frank 2006-02-07 14:20:32 UTC
Hi Joerg,

please have a look at this one and target as needed.

Frank
Comment 3 joerg.skottke 2006-03-31 05:43:15 UTC
Confirmed. 
Looks as if the API call fails -> CN
Set target, increased priority
Comment 4 chne 2006-03-31 07:47:33 UTC
cn->nn: it seems to be a problem of clac.
Comment 5 chne 2006-04-10 07:39:02 UTC
for nn
Comment 6 niklas.nebel 2006-04-11 16:53:19 UTC
Fixed on CWS "calc36". Changed:
tabvwsh3.cxx 1.26.154.1
scmod.cxx 1.46.114.1
Comment 7 niklas.nebel 2006-04-26 10:18:33 UTC
back to QA for verification

re-open issue and reassign to fst@openoffice.org
Comment 8 niklas.nebel 2006-04-26 10:18:37 UTC
reassign to fst@openoffice.org
Comment 9 niklas.nebel 2006-04-26 10:18:42 UTC
reset resolution to FIXED
Comment 10 frank 2006-05-04 11:07:05 UTC
found fixed on cws calc36. Checked on Linux, Solaris and Windows
Comment 11 frank 2006-05-09 11:02:50 UTC
found integrated on master m167 using Linux, Solaris and Windows build
Comment 12 frank 2006-05-09 14:33:33 UTC
*** Issue 64118 has been marked as a duplicate of this issue. ***