Fix when exporting to excel files

When exporting to excel, there cannot be more than 255 columns.
If there are more columns than that, we write "ERROR: TOO MANY
COLUMNS" to the 255th column. Formerly, OpenRefine reported
a 500 Server error.
This commit is contained in:
Aryeh Hillman 2014-04-12 16:41:54 -07:00
parent c2cadab475
commit 2bf35e5f0d

View File

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