To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=68752
------- Additional comments from [EMAIL PROTECTED] Fri Aug 18 11:47:04 -0700 2006 ------- Some remarks, for what it's worth... 1 - Your code does not close the document, it close the current frame of the document. The result is a document without frame. I can't say if it is a legal use of the API. 2 - With 1.1.5 on Win XP I get the message "Dbg_SupportedInterfaces not available, (TypeClass is not TypeClass_Interface)" 2 - same result is obtained with this simple code: Sub Main1 dim oDoc as object, oFrame as object oDoc = StarDesktop.loadComponentFromUrl("private:factory/scalc", "_blank", 0, array()) oFrame = oDoc.CurrentController.Frame 'this checks to see which method should be used to close the FRAME If HasUnoInterfaces(oFrame, "com.sun.star.util.XCloseable") Then oFrame.close(true) Else oFrame.dispose End If oDoc = ThisComponent MsgBox oDoc.dbg_supportedInterfaces End Sub 3 - if what you want is to continue to work in hidden mode on your document there is a better way: oDoc.CurrentController.Frame.ContainerWindow.Visible = False ' - - - do what you want - - - oDoc.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]