flex 导出excel中字段过长的问题

        例如我这么做,由于字段过长,在保存后打开xls会出现字段被截断,我想知道是什么原因,并且有什么办法可以解决这个问题,请大神们帮帮忙
        var sheet:Sheet=new Sheet();
        var columnlength:int=columns.length;
        var dsize:int=datas.length+1;
        sheet.resize(dsize,columnlength);

        celldata="1abcdefghijklnmopqrstuvwxyz2abcdefghijklnmopqrstuvwxyz3abcdefghijklnmopqrstuvwxyz4abcdefghijklnmopqrstuvwxyz5abcdefghijklnmopqrstuvwxyz6abcdefghijklnmopqrstuvwxyz7abcdefghijklnmopqrstuvwxyz8abcdefghijklnmopqrstuvwxyz9abcdefghijklnmopqrstuvwxyz10abcdefghijklnmopqrstuvwxyz";

        sheet.setCell(1,0,celldata);
        var file:ExcelFile = new ExcelFile(); 
        file.sheets.addItem(sheet); 
        var bytes:ByteArray = file.saveToByteArray(); 
        var fr:FileReference =createFileReference();
        fr.save(bytes,'name.xls');
查看全部
a8311515
a8311515
2015/08/24 12:28
  • java
  • flex
  • 点赞
  • 收藏
  • 回答
    私信

1个回复