Merge pull request #867 from abhillman/exceloutput255bugfix

Report error to user when attempting to export >255 columns, rather than generic 500 ISE
This commit is contained in:
Tom Morris 2014-04-20 23:43:19 -04:00
commit a4d03968a5

View File

@ -102,6 +102,7 @@ public class XlsExporter implements StreamExporter {
Cell c = r.createCell(i); Cell c = r.createCell(i);
if (i == 255 && cells.size() > 256) { if (i == 255 && cells.size() > 256) {
c.setCellValue("ERROR: TOO MANY COLUMNS"); c.setCellValue("ERROR: TOO MANY COLUMNS");
break;
} else { } else {
CellData cellData = cells.get(i); CellData cellData = cells.get(i);