To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=60603
                  Issue #:|60603
                  Summary:|calling .uno:ChangePrintArea  in StarBasic CRASHES
                          |OOo
                Component:|Spreadsheet
                  Version:|OOo 2.0.1
                 Platform:|PC
                      URL:|
               OS/Version:|Windows XP
                   Status:|UNCONFIRMED
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P4
             Subcomponent:|programming
              Assigned to:|spreadsheet
              Reported by:|joegyorkos





------- Additional comments from [EMAIL PROTECTED] Sun Jan 15 19:53:41 -0800 
2006 -------
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())

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to