Read And Write

Topics: Developer Forum
Oct 1, 2007 at 4:46 PM
Hi All...

I just want to simply open a document and save it again (i'll worry about editing the cells when i get this bit working)...

Had a frustrating time so far, so i'm sure its something simple:

Any ideas?


setincludepath(getincludepath() . PATH_SEPARATOR . '../Classes/');
include 'PHPExcel.php';
include 'PHPExcel/Reader/Excel2007.php';

$objPHPExcel = new PHPExcel();
$objReader = new PHPExcelReaderExcel2007();
$objPHPExcel = $objReader->load("test.xlsx");

// edit cell contents

include 'PHPExcel/Writer/Excel2007.php';
$objWriter = new PHPExcelWriterExcel2007($objPHPExcel);
Oct 2, 2007 at 11:30 AM
My bad, it was an error with the file i was copying.