linux导出Excel The maximum column width for an individual cell is 255 characters

Posted frank_quan

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux导出Excel The maximum column width for an individual cell is 255 characters相关的知识,希望对你有一定的参考价值。

linux环境到处Excel报错: The maximum column width for an individual cell is 255 characters

 

解决方案:

for (int i = 0; i < headerList.size(); i++) {  
            int colWidth = sheet.getColumnWidth(i)*2;
            if(colWidth<255*256){
                sheet.setColumnWidth(i, colWidth < 3000 ? 3000 : colWidth);    
            }else{
                sheet.setColumnWidth(i,6000 );
            }
        }

 

以上是关于linux导出Excel The maximum column width for an individual cell is 255 characters的主要内容,如果未能解决你的问题,请参考以下文章

使用jxl.write做Excel数据导出时,格式化报错:Maximum number of format records exceeded. Using default format

easyexcel: The maximum length of cell contents (text) is 32,767 characters

Linux Increase The Maximum Number Of Open Files / File Descriptors (FD)

excel导出报错:The supplied data appears to be in the Office 2007+ XML.

MySQL表结构(含数据类型字段备注注释)导出成Excel

kettle 使用excel模板导出数据