Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Daniele Futtorovic Newsgroups: comp.lang.java.programmer Subject: Re: Displaying a ragged array Date: Thu, 20 Sep 2018 15:30:47 +0200 Organization: A noiseless patient Spider Lines: 24 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 20 Sep 2018 13:31:24 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="acdd6834f9855c967ce2b4fc01b4f9d6"; logging-data="7092"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+wzlIRSlC6AN0AZIWHNmmX" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 Cancel-Lock: sha1:9ZtLPC7kpNQqU3Uyj8K4lvmOBE0= In-Reply-To: X-Antivirus-Status: Clean Content-Language: en-GB X-Antivirus: AVG (VPS 180920-6, 09/20/2018), Outbound message Xref: csiph.com comp.lang.java.programmer:38608 On 2018-09-19 20:25, Eric Sosman wrote: >     One further possibility (only you can say whether it's "possible" or > "out of the question"): Store the data as actual spreadsheet files -- > as .ods rather than as .csv, for LibreOffice.  That way you can set up > the proper formatting (all "Text," most likely) to begin with, and the > spreadsheet will remember it and preserve it each time it's opened. > Java tools for reading and writing ODF exist (I know of jOpenDocument > and ODFDOM, although the freely-available documentation isn't great), > or you can even use UNO to control a running LibreOffice instance from > Java.  I found the official ODF spec rather daunting and gave up trying > to read it; nonetheless I was able to reverse-engineer enough of the > format to load simple .ods spreadsheets.  Unsupported code available on > request. I remember using the (Star|Open|Libre)Office API from Java to create PDF files, a couple years ago. It was a harrowing experience - akin to the COM mess (which is to say that you can still make something worthwhile out of it). CSV is a good data format. Until your process involves a human opening those files in a spreadsheet editor. -- DF.