To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=46025
Issue #:|46025
Summary:|Impossible to create new Calc doc by macro
Component:|api
Version:|680m87
Platform:|All
URL:|
OS/Version:|Windows XP
Status:|UNCONFIRMED
Status whiteboard:|
Keywords:|
Resolution:|
Issue type:|DEFECT
Priority:|P3
Subcomponent:|code
Assigned to:|sw
Reported by:|bmarcelly
------- Additional comments from [EMAIL PROTECTED] Fri Mar 25 12:12:34 -0800
2005 -------
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
---------------------------------------------------------------------
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]