Add new row

Apr 20, 2011 at 4:07 PM

Hello

I try to add a new row in a file excel but nothing happen. ..... why? Where do I wrong?

Thats my code ;

------------------------------------------------------------------------

$objReader = PHPExcel_IOFactory::createReader('Excel2007');
//$objReader->setReadDataOnly(true);

$objPHPExcel = $objReader->load("test.xlsx");
$objWorksheet = $objPHPExcel->getActiveSheet();

$objWorksheet->insertNewRowBefore(7, 2);

-------------------------------------------------------------------------

Nothing happen....... pls help

Apr 20, 2011 at 4:09 PM
Edited Apr 20, 2011 at 4:10 PM

did you save the object after you made changes?

 

What did you expect to happen?