Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


Dear Michael ,

We have an OOO|LO workbook in server. Jboss is generating report based on that workbook. This process 
is written. In old version  ( which was using OOO&  Swing on client side) we were opening that 
Workbook. Everything was working fine.

Now in new version we would like to have LO on server side and use web based client. For that 
purpose we have to :
1. Generate report on server side in LO workbook ( this is done)
2. Save it as HTML ( that is also done using code I have sent , but performance is not very good 
and sometime LO is crashing)
3. Send it to web based client ( we are using EXT GWT framework for client)


./soffice is not useful becasue then we need first to save file in hdd (originaly file is in 
database , convert an send to Client.

Are you in right way ?
:-)

P.S. See prototypehere  
<http://www.youtube.com/watch?v=Xbxj_1bsTv8&context=C466c167ADvjVQa1PpcFMD7_GcykmfozA7Ys7VC8xWoaZTsPpiDOI=>


On 3/12/2012 1:49 PM, Michael Meeks wrote:
On Mon, 2012-03-12 at 13:25 +0400, libreoffice.ge@gmail.com wrote:
As we informed earlier we are trying to Migrate from OOO Calc to LO
Calc in  our J2EE software.  One of the function we need is to ” SAVE
AS HTML”  OOO|LO Calc Workbook .  Now we are doing it using the code /
method below.
        So - I didn't really grok what your use-case is. For "export to HTML"
you must have some model / file format to start with and want to convert
it to something else.

        Assuming that is not libreoffice itself, you probably want to look at
running:

        ./soffice --help
...
--convert-to output_file_extension[:output_filter_name] [--outdir output_dir] files
       Batch convert files.
       If --outdir is not specified then current working dir is used as output_dir.
       Eg. --convert-to pdf *.doc

        Which you can just spawn in the background, will do the conversion and
exit.

ANY CHANCE TO DO IT WITHOUT RUNNING OOO/LO ?  (Like POI can do with
Excel Files.)  . We are looking to http://www.jopendocument.org/ , but
we are very new to LO so any recommendation is very welcome.
        That might be possible, you could do more work to the ooconvert thing
to make it possible to bootstrap UNO (@#$@$#%ing difficult sadly) inside
your existing application, and then link the libraries that do the work
into that, but .... really it'd be easier to run ./soffice --convert-to
foo.xls baa.ods or whatever.

        HTH,

                Michael.



Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.