如何使用php中的Spreadsheet_Excel_Writer()在Excel单元格中输出超过255个字符? [英] How do I output more than 255 characters in an Excel cell using Spreadsheet_Excel_Writer() in php?

查看:83
本文介绍了如何使用php中的Spreadsheet_Excel_Writer()在Excel单元格中输出超过255个字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Excel电子表格中输出一些文本段落,但是现在文本被截断为仅显示255个字符.该代码非常简单:

I am trying to output a few paragraphs of text in an Excel spreadsheet, but right now the text is truncated to display only 255 characters. The code is pretty straightforward:

$xls =& new Spreadsheet_Excel_Writer();
$sheet =& $xls->addWorksheet($name);

foreach ($rec as $field) {
    $rec = ($rec['data'] ? $rec['data'] : $rec);
    $sheet->write($row, $col++, $field);
}

我能做些什么来获取所有文本,而不仅仅是255个字符?

Is there anything I can do to get all of the text, not just the 255 chars?

推荐答案

来自 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆