On Wed, 13 Jan 2010, Chris wrote:
1.2.ALL
Workbook wb = new HSSFWorkbook();
Oops...
HSSFWorkbook wb = is better ...

This is deliberate. If you code to the ss.usermodel interfaces, then your code will work with both xssf and hssf


1.2.8. Iterate over rows and cells HSSFSheet sheet = wb.getSheetAt(0);

Ignore this, I've now removed it from the docs as it isn't needed. See the ss.usermodel example just above it, or the ss.usermodel foreach below it - you don't need to be casting to the concrete classes for this.

Nick

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

Reply via email to