List Info

Thread: Open Calc in a DotNet Windows Application Form




Open Calc in a DotNet Windows Application Form
user name
2007-10-14 08:36:07
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
veppubcdisa.ch
------------------------------
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: dev-unsubscribeapi.openoffice.org
For additional commands, e-mail: dev-helpapi.openoffice.org


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )