poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cope, Christopher" <Christopher.C...@logicacmg.com>
Subject Using HSSF to parse Excel
Date Wed, 12 Nov 2003 16:50:48 GMT

I am working on a system that automatically extracts data from .xls files,
performs manipulation of the data and then inserts the manipulated data into
an Oracle database.
There are numerous sets of data that we need to extract from different .xls
files, and the Excel spreadsheets themselves come in a number of different
formats - single worksheets, multiple worksheets, some containing macros,
formulae etc. The data items that we need to extract can therefore be in
various different places within a spreadsheet.
The data extraction process is written in Java and to handle the complexity
of where to find each data item we are using a Java rules engine.

Currently we do not access the .xls files themselves with Java, instead we
use the Runtime object to kick off an external VB process. The VB process
uses the Excel 2002 XML support to save the .xls files into Microsoft's XML
format. The Java then resumes using JAXP to read the XML files.

We have encountered various problems with VB processes failing to terminate
and are also keen to streamline things by keeping it all as one Java
process. We thus want to refactor the .xls file reading process to use Java.

So my question(s):

Is HSSF's event model the best API to achieve this?
If so will the fact that the spreadsheets typically have lots of formatting
cause problems? (see http://jakarta.apache.org/poi/faq.html Q.14)

If not what else could be used? Would it be possible to access the .xls
files using Star Office's Universal Network Objects?

Any comments gratefully received.



This e-mail and any attachment is for authorised use by the intended recipient(s) only. It
may contain proprietary material, confidential information and/or be subject to legal privilege.
It should not be copied, disclosed to, retained or used by, any other party. If you are not
an intended recipient then please promptly delete this e-mail and any attachment and all copies
and inform the sender. Thank you.

To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-user-help@jakarta.apache.org

View raw message