Bug #19284 [Com]: RC2 breaks header in excel files from Spreadsheet_Excel_Writer

From: Date: Thu, 08 Nov 2012 13:31:19 +0000
Subject: Bug #19284 [Com]: RC2 breaks header in excel files from Spreadsheet_Excel_Writer
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-9310@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=19284&edit=1 ID: 19284 Comment by: mirtol Reported By: miles at ithana dot com Summary: RC2 breaks header in excel files from Spreadsheet_Excel_Writer Status: Feedback Type: Bug Package: OLE Operating System: CentOS release 5.6 (Final) Package Version: 1.0.0RC2 PHP Version: 5.2.17 New Comment: THANKYOU indentit. Solved my problem! This should be committed ASAP as this is a major bug! Previous Comments: ------------------------------------------------------------------------ [2012-08-08 18:12:26] identit 2 days over this problem ... The solution is change in Root.php \ line 623 : fwrite($FILE, pack("V", 1)); to fwrite($FILE, pack("V", $num_sb_blocks)); to be consistent with prévious RC : Root.php \ line 256 : . pack("V", $iSBDcnt) ------------------------------------------------------------------------ [2012-07-02 11:38:28] monojit Reverting to RC1 and 0.9.2 solved the problem. ------------------------------------------------------------------------ [2012-07-02 08:34:04] monojit I have created a xls file using pear.File works fine in excel 2007 but in excel 2010 it shows corrupt XLS-files.I want to know the reason of that and plz tell me how o fix this problem. ------------------------------------------------------------------------ [2012-04-26 15:13:35] aaronh My colleague was able to find a minimal script that produces 192 rows and causes the file to be corrupt in Microsoft Excel 2007 on Windows 7. If the number of rows is 191, then the file is no longer considered corrupt. <?php require_once "Spreadsheet/Excel/Writer.php"; $xls = new Spreadsheet_Excel_Writer(); $sheet =& $xls->addWorksheet("Sheet1"); for ($i = 0; $i < 192; $i++) { $sheet->write($i, 0, 'test'); } $return = $xls->close(); ------------------------------------------------------------------------ [2012-03-27 10:13:35] nvanlancker We have expierenced the same issues with Spreadsheet_Excel_Writer 0.9.3 and OLE-1.0.0RC2 : On Windows 7 and Office 2010 clients it resulted in corrupt XLS-files, if the spreadsheet doesn't contain a lot of rows it still works fine. Reverting to RC1 and 0.9.2 solved the problem. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://pear.php.net/bugs/bug.php?id=19284 -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=19284&edit=1

« previous php.pear.bugs (#9310) next »