Issue 57739 - macro recorder issue
Summary: macro recorder issue
Status: CLOSED DUPLICATE of issue 54702
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: Mathias_Bauer
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-11 12:50 UTC by jer57
Modified: 2013-02-24 21:09 UTC (History)
2 users (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 jer57 2005-11-11 12:50:20 UTC
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.
Comment 1 stephan.wunderlich 2005-11-11 12:55:00 UTC
sw->mba: this is your playground as far as I know :-)
Comment 2 Mathias_Bauer 2005-11-11 13:01:36 UTC
duplicate

*** This issue has been marked as a duplicate of 54702 ***
Comment 3 Mathias_Bauer 2005-11-11 13:01:58 UTC
closing