c++ app samples that communicates with libreoffice, to work with a CALC doc.

nicholas ferguson nicholasferguson at wingarch.com
Mon Sep 29 13:08:21 PDT 2014

On 09/29/2014 02:26 PM, nicholas ferguson wrote:
> Can anyone send me a sample.  sample can be for a linux or windows 
> platform.

>>Stephan replied:

On 09/29/2014 03:08 PM, nicholas ferguson wrote:
> then it builds but it crashes at  ( it also crashes there...even if I 
> keep
> Line 75:  Reference< XDesktop2> xComponentLoader = 
> Desktop::create(xContext);

stephen wrote:
> Did you set the UNO_PATH environment variable, as described at
<https://wiki.openoffice.org/wiki/Documentation/DevGuide/ProUNO/C%2B%> >
>   (Though my understanding is that this should not be necessary with a
properly installed LO on Windows, as the Simple Bootstrap mechanism > would
locate LO via registry entries written by the LO installation
> procedure.)

[nicholas ferguson]
To show added value from LibreOffice.  There are several restrictions, which
1.  Cannot write to windows registry.  So this eliminates this example
2.  Cannot make a formal installation of LibreOffice.  Again, this
eliminates this example.
3.  I can do a dev install of LibreOfffice, via cygwin. 

code can always include 
putenv("UNO_PATH=....path to instdir/program");

Is there an example that doesn't require writing to registry or a formal
installation of a libreoffice release?

More information about the LibreOffice mailing list