To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=57739
                  Issue #:|57739
                  Summary:|macro recorder issue
                Component:|api
                  Version:|OOo 2.0
                 Platform:|All
                      URL:|
               OS/Version:|All
                   Status:|UNCONFIRMED
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|code
              Assigned to:|sw
              Reported by:|jer57





------- Additional comments from [EMAIL PROTECTED] Fri Nov 11 04:50:20 -0800 
2005 -------
I have created a macro (using the recorder) that save automatically a 
spreadsheet in html format, once it is opened. That is the code that has been 
generated

sub record_html
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(2) as new com.sun.star.beans.PropertyValue
args1(0).Name = "URL"
args1(0).Value = "file://tmp/test_graph1.html"
args1(1).Name = "FilterName"
args1(1).Value = "HTML (StarCalc)"
args1(4).Name = "SelectionOnly"
args1(4).Value = true

dispatcher.executeDispatch(document, ".uno:SaveAs", "", 0, args1())

max index for objects is defined args1 to 2, whereas after index 4 is used.
When I then run the macro I got the following error
Inadmissible Value or DataType - Index out of defined range 

This seems to be a recorder issue. manual correction of the macro solved the pb.

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