Hello. I need to insert image into opened document in java program. I am creating document: =========== com.sun.star.frame.XComponentLoader xComponentLoader = null; com.sun.star.beans.PropertyValue openProperties[] = new com.sun.star.beans.PropertyValue[1]; openProperties[0] = new com.sun.star.beans.PropertyValue(); openProperties[0].Name = "Hidden"; openProperties[0].Value = new Boolean(true); try { xComponentLoader = (com.sun.star.frame.XComponentLoader)UnoRuntime.queryInterface(com.sun.star.frame.XComponentLoader.class, this.xDesktop); this.xComponent = xComponentLoader.loadComponentFromURL("private:factory/swriter", "_blank", 0, openProperties); } catch( Exception e) { System.err.println("Could not create blank file."); e.printStackTrace(System.err); return false; } ===========
What next? -- Михаил Кечинов http://www.mkechinov.ru