<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<pre wrap="">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 prototype <a href="http://www.youtube.com/watch?v=Xbxj_1bsTv8&context=C466c167ADvjVQa1PpcFMD7_GcykmfozA7Ys7VC8xWoaZTsPpiDOI=">here </a>
</pre>
<br>
On 3/12/2012 1:49 PM, Michael Meeks wrote:
<blockquote cite="mid:1331545741.18449.36.camel@linux-yjtf.site"
type="cite">
<pre wrap="">
On Mon, 2012-03-12 at 13:25 +0400, <a class="moz-txt-link-abbreviated" href="mailto:libreoffice.ge@gmail.com">libreoffice.ge@gmail.com</a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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.
</pre>
</blockquote>
<pre wrap="">
        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.
</pre>
<blockquote type="cite">
<pre wrap="">ANY CHANCE TO DO IT WITHOUT RUNNING OOO/LO ? (Like POI can do with
Excel Files.) . We are looking to <a class="moz-txt-link-freetext" href="http://www.jopendocument.org/">http://www.jopendocument.org/</a> , but
we are very new to LO so any recommendation is very welcome.
</pre>
</blockquote>
<pre wrap="">
        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.
</pre>
</blockquote>
<br>
</body>
</html>