To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=72811 Issue #|72811 Summary|C# CloseVetoException problem Component|api Version|OOo 2.1 Platform|All URL| OS/Version|Windows XP Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|code Assigned to|jsc Reported by|rpavelic
------- Additional comments from [EMAIL PROTECTED] Wed Dec 20 07:34:10 -0800 2006 ------- Hi! I'm having trouble making OO close document using uno from C# (MS.NET). After call to XCloseable xClose = (XCloseable)xTextDocument; xClose.close(true); Exception is raised in unoidl.com.sun.star.uno.Exception unoidl.com.sun.star.util.CloseVetoException: Controller disagree ... Server stack trace: Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at unoidl.com.sun.star.util.XCloseable.close(Boolean DeliverOwnership) What I'm doing is the following open existing document write to it print it try to close it But the document wont close and it raises this exception. Maybe this is not a bug, but I'm just doing in the wrong way. This is exactly what I'm doing xLocalContext = uno.util.Bootstrap.bootstrap(); xRemoteFactory = (unoidl.com.sun.star.lang.XMultiServiceFactory)xLocalContext.getServiceManager(); aLoader = (XComponentLoader)xRemoteFactory.createInstance("com.sun.star.frame.Desktop"); xComponent = aLoader.loadComponentFromURL("file:///" + fajl, "_blank", 0, new unoidl.com.sun.star.beans.PropertyValue[0]); xTextDocument = (unoidl.com.sun.star.text.XTextDocument)xComponent; ... some edditing ... XCloseable xClose = (XCloseable)xTextDocument; xClose.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]