Open GoogleCodeExporter opened 8 years ago
Please send / show the script source .
Original comment by ij%irj.c...@gtempaccount.com
on 16 Nov 2010 at 5:31
Script source is (it is also attached to this comment):
<?php
require_once 'reader.php';
$data = new Spreadsheet_Excel_Reader();
$data->setOutputEncoding('CP1251');
$data->read('test.xls');
for ($j = 1; $j <= $data->sheets[0]['numCols']; $j++)
{
echo "\"".$data->sheets[0]['cells'][145][$j]."\",";
}
?>
Original comment by BEZ...@gmail.com
on 17 Nov 2010 at 2:42
Attachments:
Change
$newstr = $retstr[$j].chr(0);
into
$newstr .= $retstr[$j].chr(0);
around line 547 in reader.php, that should solve the problem. It happens when
your excel's SST record exceeds the BIFF record size (which may happen if you
have more than 8kbyte of unique texts in cells), and a CONTINUE is inserted in
the middle of a string.
Original comment by gergely....@gmail.com
on 30 Nov 2010 at 2:48
Thank you, gergoe, you are the saver!
Original comment by BEZ...@gmail.com
on 30 Nov 2010 at 6:08
Original issue reported on code.google.com by
BEZ...@gmail.com
on 12 Nov 2010 at 11:32