Read And Write

Topics: Developer Forum
Oct 1, 2007 at 5: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 12:30 PM
My bad, it was an error with the file i was copying.