Quantcast
Channel: PHPExcel Forum Rss Feed
Viewing all articles
Browse latest Browse all 2707

New Post: Problem with load function

$
0
0
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:
$objReader = PHPExcel_IOFactory::createReaderForFile("/file.xlsx");

                $objReader->setReadDataOnly(true); 

                $objPHPExcel= $objReader->load("/file.xlsx");

Viewing all articles
Browse latest Browse all 2707

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>