I'm a beginer in SDK libre office and I have got some problems
First I use this command to launch Libre office :
Code: Select all
soffice.exe -accept=socket,host=localhost,port=2083;urp;Staroffice.ServicemanagerWith this command I have got in LibreOffice listenning on port 2083 (I Have check it with
Code: Select all
netstat -anThen again compile and run http://api.libreoffice.org/examples/Dev ... onnect.cxx Result is (Connected successfully to the office)
And again with http://api.libreoffice.org/examples/Dev ... ap_cpp.cxx. Result calc is Open
Now with example http://api.libreoffice.org/examples/cpp/DocumentLoader/ and
program crashed and with debugging problem is at line 135 :
Code: Select all
/* Creates an instance of a component which supports the services specified
by the factory. Important: using the office component context.
*/
Reference < XDesktop2 > xComponentLoader = Desktop::create(xComponentContext);
Code: Select all
assert(the_context.is());
::css::uno::Reference< ::css::frame::XDesktop2 > the_instance;
try {
the_instance = ::css::uno::Reference< ::css::frame::XDesktop2 >(the_context->getServiceManager()->createInstanceWithContext(::rtl::OUString( "com.sun.star.frame.Desktop" ), the_context), ::css::uno::UNO_QUERY);
} catch (const ::css::uno::RuntimeException &) {
throw;
}
If somebody can give me an idea to solve my problem.
Thanks you for yours ideas