hey guys,i got a problem with using PHPExcel to load excel2007 ,plz help ,TOT

Topics: Developer Forum
Sep 10, 2013 at 4:05 AM
    $fileType =  PHPExcel_IOFactory::identify($filelocation);

//  PHPExcel_Settings::setZipClass(PHPExcel_Settings::PCLZIP);
            $objReader = PHPExcel_IOFactory::createReader($fileType);//use excel2007 for 2007 format
            $objPHPExcel = $objReader->load($filelocation);
            $objWorksheet = $objPHPExcel->getActiveSheet();
            $highestRow = $objWorksheet->getHighestRow();
            echo 'highestRow='.$highestRow;
            echo "<br>";
            $highestColumn = $objWorksheet->getHighestColumn();
            $highestColumnIndex = PHPExcel_Cell::columnIndexFromString($highestColumn);
            echo 'highestColumnIndex='.$highestColumnIndex;
            echo "<br>";
when i was run this part of code , just jump to broswer's error page ,error code 101,how can i solve this problem;
Sep 10, 2013 at 5:03 AM
LOL,I just solved this problem by myself.