To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=64118
                  Issue #:|64118
                  Summary:|Macros: dispatcher.executeDispatch crashes withou
                          |error.
                Component:|Spreadsheet
                  Version:|OOo 2.0
                 Platform:|All
                      URL:|
               OS/Version:|All
                   Status:|UNCONFIRMED
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|programming
              Assigned to:|spreadsheet
              Reported by:|grval





------- Additional comments from [EMAIL PROTECTED] Fri Apr  7 11:52:42 -0700 
2006 -------
I have Sub that crashes when it gets to dispatcher.executeDispatch . This Sub
works fine in OOo 1.1.3 . I'm not sure if this has any relation to #20046 .

The actual OOo version is 1.9.129.


REM setRangeRowsToRepeat
REM
REM set a range of rows to repeat when printing new page
REM
sub setRangeRowsToRepeat(startRow as integer, endRow as integer)
        dim document   as object
        dim dispatcher as object
        
        document   = ThisComponent.CurrentController.Frame
        dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")


        dim args2(2) as new com.sun.star.beans.PropertyValue
        args2(0).Name = "PrintArea"
        args2(0).Value = ""
        args2(1).Name = "PrintRepeatRow"
        args2(1).Value = "$A$" & CStr(startRow + 1) & ":$A$" & CStr(endRow + 1) 
        args2(2).Name = "PrintRepeatCol"
        args2(2).Value = ""

        dispatcher.executeDispatch(document, ".uno:ChangePrintArea", "", 0, 
args2())
end sub

---------------------------------------------------------------------
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