Je crée un calendrier dans Excel. La colonne 1 est 01.01.2010 (jj.MM.aaaa), la colonne 2 est 02.01.2010 et ainsi de suite.Comment obtenir plus de 255 colonnes dans une feuille Excel à l'aide d'Apache POI 3.6
Ceci est mon code:
int day_cell = 0;
for(int i = 0; i < days.size(); i++)
{
Date day = days.get(i);
HSSFCell cell = row.createCell(day_cell++);
cell.setCellValue(day.toString());
}
Quand je reçois à la colonne 256 POI lance cette exception:
java.lang.IllegalArgumentException: Invalid column index (256). Allowable column range for BIFF8 is (0..255) or ('A'..'IV')
at org.apache.poi.hssf.usermodel.HSSFCell.checkBounds(HSSFCell.java:926)
at org.apache.poi.hssf.usermodel.HSSFCell.<init>(HSSFCell.java:162)
at org.apache.poi.hssf.usermodel.HSSFRow.createCell(HSSFRow.java:141)
at org.apache.poi.hssf.usermodel.HSSFRow.createCell(HSSFRow.java:119)
J'ai trouvé ce rapport de bug suggérant qu'il a été corrigé dans la version 3.6. Nous utilisions 3.5 mais changer à 3.6 ne semble pas faire du bien. Quelqu'un at-il des conseils?
https://issues.apache.org/bugzilla/show_bug.cgi?id=46806
Edit: On dirait que le bug-question était sur les formules ..
Je ne cherche pas à passer à une autre API. – Tommy