To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=63162
                  Issue #:|63162
                  Summary:|Impossible to close a Base document
                Component:|api
                  Version:|OOo 2.0.2
                 Platform:|All
                      URL:|
               OS/Version:|Windows XP
                   Status:|UNCONFIRMED
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|code
              Assigned to:|fs
              Reported by:|bmarcelly





------- Additional comments from [EMAIL PROTECTED] Tue Mar 14 05:10:57 -0800 
2006 -------
A Base document may be loaded by API, but it cannot be closed with the usual  
document.close(True) method : it throws CloseVetoException.
Simple Basic example:

Dim dbDoc As Object
Dim adrOdb As String
Dim OdbOpt() as new com.sun.star.beans.PropertyValue

adrOdb = convertToURL("C:\Documents and Settings\Personne\Mes 
Documents\Databases\base2\usine.odb")
dbDoc = StarDesktop.loadComponentFromURL(adrOdb, "_blank", 0, OdbOpt())
wait(3000)
dbDoc.close(True)  ' -> closeVetoException

This is not consistent with other document types (Writer, Calc, etc) and does 
not 
follow the flowchart "Closing a model" from Developer's Guide 6.4.5.

I did not encounter the problem in October 2005, on a 1.9.xx or 2.0.0 version. 
Found 
it on 2.0.1 and 2.0.2

For other readers of this issue, Franck provided this alternative solution, 
which 
works:
dbDoc.currentController.Frame.close(True)

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