Bonjour Frank
Message du 2006-03-14 09:59:
Hi Laurent,

com.sun.star.util.CloseVetoException

That's okay :), and it was a bug that this exception wasn't thrown
before. (Hmm. Thinking about it, do the other document types behave the
same way?)

No. If I load a text document for example, no problem to close it.

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

adrOdb = convertToURL("C:\Docs OpenOffice\PrixSuperieur10.odt")
dbDoc = StarDesktop.loadComponentFromURL(adrOdb, "_blank", 0, OdbOpt())
wait(3000)
dbDoc.close(True)


The idea is that as long as a view to the document exists, you cannot
close the document - the view will veto is.

This is not the case for documents other than odb.

   Bernard

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to