Hi,
I have some issues to load an Excel file when I load the internet page i have an error message like this:
Fatal error: Uncaught exception 'Exception' with message 'Cell coordinate must be a range of cells.' in .../Classes/PHPExcel/Worksheet/PageSetup.php:649 Stack trace: #0 .../Classes/PHPExcel/Reader/Excel2007.php(1702): PHPExcel_Worksheet_PageSetup->setPrintArea('#N/A') #1 page.php(39): PHPExcel_Reader_Excel2007->load('../../Excel/...') #2 {main} thrown in .../Classes/PHPExcel/Worksheet/PageSetup.php on line 649
I don't know why the setPrintArea function is the error because I don't use it in my code maybe the load function use it?
Here is an extract of my code:
I have some issues to load an Excel file when I load the internet page i have an error message like this:
Fatal error: Uncaught exception 'Exception' with message 'Cell coordinate must be a range of cells.' in .../Classes/PHPExcel/Worksheet/PageSetup.php:649 Stack trace: #0 .../Classes/PHPExcel/Reader/Excel2007.php(1702): PHPExcel_Worksheet_PageSetup->setPrintArea('#N/A') #1 page.php(39): PHPExcel_Reader_Excel2007->load('../../Excel/...') #2 {main} thrown in .../Classes/PHPExcel/Worksheet/PageSetup.php on line 649
I don't know why the setPrintArea function is the error because I don't use it in my code maybe the load function use it?
Here is an extract of my code:
$objReader = PHPExcel_IOFactory::createReaderForFile("/file.xlsx");
$objReader->setReadDataOnly(true);
$objPHPExcel= $objReader->load("/file.xlsx");