Good Morning, I would like to know how do I display more than one worksheet excel with PHPExcel. I have the following code which shows only the first sheet of my file.
$ objReader = PHPExcel_IOFactory :: CreateReader ('Excel2007');
$ objReader-> setReadDataOnly (true);
$ $ = objPHPExcel objReader-> load ("Test.xlsx");
$ $ = objWorksheet objPHPExcel-> getActiveSheet ();
$ $ = highestRow objWorksheet-> getHighestRow ();
$ $ = highestColumn objWorksheet-> getHighestColumn ();
highestColumnIndex $ :: = PHPExcel_Cell columnIndexFromString ($ highestColumn);
for ($ row = 6, $ row <$ highestRow; $ row + +) {
for ($ col = 0; $ col <= 1; $ col + +) {
$ objWorksheet-> getCellByColumnAndRow ($ col, $ row) -> getValue ();
}
I wonder how to show the other sheets in my file?
Thank you.
$ objReader = PHPExcel_IOFactory :: CreateReader ('Excel2007');
$ objReader-> setReadDataOnly (true);
$ $ = objPHPExcel objReader-> load ("Test.xlsx");
$ $ = objWorksheet objPHPExcel-> getActiveSheet ();
$ $ = highestRow objWorksheet-> getHighestRow ();
$ $ = highestColumn objWorksheet-> getHighestColumn ();
highestColumnIndex $ :: = PHPExcel_Cell columnIndexFromString ($ highestColumn);
for ($ row = 6, $ row <$ highestRow; $ row + +) {
for ($ col = 0; $ col <= 1; $ col + +) {
$ objWorksheet-> getCellByColumnAndRow ($ col, $ row) -> getValue ();
}
I wonder how to show the other sheets in my file?
Thank you.