Hello, I was trying Busy Developers' Guide to HSSF and XSSF Features on http://poi.apache.org/spreadsheet/quick-guide.html But I'm afraid there are to many errors on it. Was it writen in a hurry ...? See : 1.2.ALL Workbook wb = new HSSFWorkbook(); Oops... HSSFWorkbook wb = is better ... ____________________________________________________________________ 1.2.8. Iterate over rows and cells HSSFSheet sheet = wb.getSheetAt(0); for (Iterator<HSSFRow> rit = (Iterator<HSSFRow>)sheet.rowIterator(); rit.hasNext(); ) { HSSFRow row = rit.next(); for (Iterator<HSSFCell> cit = (Iterator<HSSFCell>)row.cellIterator(); cit.hasNext(); ) { HSSFCell cell = cit.next(); // Do something here } }
Oops ... found : poi.ss.usermodel.Row required : poi.hssf.usermodel.HSSFRow ...etc It's a shame, because the idea ( Busy Dev Guide ) is great Regards, Chris --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
