On Fri, 18 Jul 2008, Rainer Schwarze wrote:
I'm trying to work with JasperReports 3.0.0 which is built against POI-3.0.1-FINAL. When I use a newer POI library, it complains, because interfaces changed such as HSSFCell.setCellStyle(HSSFCellStyle) being now HSSFCell.setCellStyle(CellStyle).

I'm guessing this is on the 3.5 / ooxml branch? HSSFCellStyle extends CellStyle, so you shouldn't see any difference - we've made the method call more accepting, not less.

It's possible to compile almost all of the unit tests from poi 3.1 against the jar of poi 3.5, certainly all the cell style ones, so I'm not sure why you're hitting a problem. (It's only MissingCellPolicy and HSSFFormulaEvaluator.CellValue that need to change, see docs/spreadsheet/converting.html)

Are you sure you only have the one version of poi on your classpath? It's only the 3.5 version of HSSFCellStyle that extends CellStyle, so if you have an old version too that might confuse things

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to