poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris <christian.av...@finances.gouv.fr>
Subject Busy Developers' BAD Guide to HSSF and XSSF
Date Wed, 13 Jan 2010 12:49:14 GMT
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: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Mime
View raw message