UnoRuntime.queryInterface( XComponentLoader.class,
xmulticomponentfactory.createInstanceWithContext(
"com.sun.star.frame.Desktop", xcomponentcontext ) );
// Load a Writer document, which will be automaticly displayed
XComponent xcomponent = xcomponentloader.loadComponentFromURL(
"private:factory/scalc", "_blank", 0,
new PropertyValue[0] );
// Querying for the interface XSpreadsheetDocument
XSpreadsheetDocument xspreadsheetdocument =