Issue 46025 - Impossible to create new Calc doc by macro
Summary: Impossible to create new Calc doc by macro
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All Windows XP
: P3 Trivial
Target Milestone: ---
Assignee: stephan.wunderlich
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-25 20:12 UTC by bmarcelly
Modified: 2013-02-24 21:08 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 bmarcelly 2005-03-25 20:12:34 UTC
Here is a Basic macro to create a new Calc document. It works OK in OOo 1.1.3 but it 
systematically crashes 1.9m87

Sub testWriteDoc
Dim myDoc As Object, adresseDoc As String, propFich(), myCell As Object
adresseDoc = "private:factory/scalc"
myDoc = StarDesktop.LoadComponentFromURL(adresseDoc, "_blank", 0, propFich)
myCell = myDoc.Sheets(0).getCellRangeByName("A1")
myCell.String = "Hello"
adresseDoc = convertToURL("C:\Docs OpenOffice\tarata.ods")
myDoc.storeAsURL(adresseDoc, propFich)
myDoc.close(True)
MsgBox("Document written")
End Sub
Comment 1 stephan.wunderlich 2005-03-29 08:44:46 UTC
works like a charm for me with 1.9m88
Comment 2 bmarcelly 2005-04-08 14:12:05 UTC
Works also for me now with 1.9m91