Fixed Issue 122: Exporting to Excel on attached project raises server exception
git-svn-id: http://google-refine.googlecode.com/svn/trunk@1370 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
f2ce1b7161
commit
194fb5e706
@ -105,7 +105,12 @@ public class XlsExporter implements Exporter {
|
||||
} else if (v instanceof Calendar) {
|
||||
c.setCellValue((Calendar) v);
|
||||
} else if (v instanceof String) {
|
||||
c.setCellValue((String) v);
|
||||
String s = (String) v;
|
||||
if (s.length() > 32767) {
|
||||
// The maximum length of cell contents (text) is 32,767 characters
|
||||
s = s.substring(0, 32767);
|
||||
}
|
||||
c.setCellValue(s);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user