I'm using Apache POI for my app and I want to set columns names instead of "A, B, C..."
I use the following code but it adds just data in first row:
public void createHeaderRow(HSSFSheet sheet, List<String> headerRowList) {
HSSFRow headerRow = sheet.createRow(0);
for(int i=0;i<headerRowList.size();i++){
HSSFCell cell = headerRow.createCell((short) i);
cell.setCellValue(headerRowList.get(i).toString());
}
}
So any ideas?