On Tue, 24 Mar 2009, J Keller wrote:
 1) The XSSF and HSSF Workbook constructors vary, I was using the
InputStream one for HSSF before.  Easy enough to work-around.

The constructors vary as the base file reading varies (eg xssf is compressed). Try using the workbook factory instead

 2) I'm didn't find a a good way to get a FormulaEvaluator without checking
the instanceof for the workbook.

Did you try following the example at http://poi.apache.org/spreadsheet/eval.html ?

 3) I get a strange exception (hopefully a problem on my side):
     Exception in thread "Thread-4" java.lang.IncompatibleClassChangeError:
     Class org.apache.poi.hssf.usermodel.HSSFWorkbook does not implement
the requested interface
     org.apache.poi.ss.usermodel.Workbook

Almost certainly two different versions of poi on your classpath


Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to