problem with excel 2003

Topics: User Forum
May 17, 2008 at 6:57 PM
I have a simple Excel 2003 file that I want to copy via PHPExcel as an Excel 2003 file.

I have:

$objReader = new PHPExcel_Reader_Excel5;
$objPHPExcel = $objReader->load("a.xls"); 
$objWriter = new PHPExcel_Writer_Excel5($objPHPExcel);

but afterwards the new file is empty. If I change a cell using PHPExcel, the cell is changed in the new file, but all the data from the a.xls is not there.

Thank you in advance!

May 19, 2008 at 6:10 AM
The Excel 2003 reader is currently not supporting all Excel features. Try copying via file i/o functions? copy(x, y); should do the trick.
May 19, 2008 at 10:21 AM
I read in another post that it is not supported at all, which I found to be true. My document has only text and 1-2 lines with formatted text. Anyway I generated it via PHPExcel from top to bottom.

Great product! Thank you.