Hello,

I search to open calc in an Windows Application form.

Is this possible ?.

In this way ?.

        m_xContext = Bootstrap.bootstrap();
        m_xMSFactory
                = (XMultiServiceFactory)m_xContext.getServiceManager();
        m_xComponentLoader
                = (XComponentLoader)
        
m_xMSFactory.createInstance("com.sun.star.frame.Desktop");
        try
        {
                m_xComponent = m_xComponentLoader.loadComponentFromURL
                (
                        "file:///C:/tmp/one.ods",
                        "_blank",
                        0,
                        new PropertyValue[0]
                );
        }

What must be change in the code ?.

Thanks for your help.


Best regards.

------------------------------
Paul Veuve
[EMAIL PROTECTED]
------------------------------
CDI CONSEILS ET DEVELOPPEMENTS
INDUSTRIELS SA
Chemin de la Justice 15
CH-2000 NEUCHATEL
------------------------------
http://www.cdisa.ch

Phone  (+41 32) 733 31 31 
   or  (+41 78) 600 31 31

  Fax  (+41 32) 733 31 32
------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to