Цитироватьunoidl.com.sun.star.uno.XCompo nentContext localContext = uno.util.Bootstrap.bootstrap(); XMultiServiceFactory multiServiceFactory = (XMultiServiceFactory)localContext.getSe rviceManager(); XComponentLoader componentLoader = (XComponentLoader)multiServiceFactory.cr eateInstance("com.sun.star.frame.Desktop "); XComponent xComponent = componentLoader.loadComponentFromURL("fi le:///\\Server/patch/Dogovor/shablon_dogovor.odt", "_blank", 0, new unoidl.com.sun.star.beans.PropertyValue[0]); XDispatchHelper dispatcher = (XDispatchHelper)multiServiceFactory.cre ateInstance("com.sun.star.frame.Dispatch Helper"); C# OO_o 2.2Цитировать{"URL seems to be an unsupported one."}
|