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

New Post: PHPExcel 1.8.0 : Unable to load external sheet

$
0
0
Hi,

I successfully used previous versions of PHPExcel (prior to 1.8.0) to create multiple worksheets and write to disk (saved in /tmp), after creating and writing about 8 excel documents I would then load all 8 sheets into 1 large excel document as 8 individual tabs and save to disk. This worked well.

I upgraded to PHPExcel 1.8.0: I am able to create the 8 documents but unable to load them into the large excel document. I am able to load only 1 sheet, the remaining sheets fail to load.

The error in Excel2007.php is at line 364 & 461:
$wbRels = simplexml_load_string($this->_getFromZipArchive($zip, "xl/_rels/workbook.xml.rels"), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions());

$wbRels is null after loading the first sheet. So this line: foreach ($wbRels->Relationship as $rel) { ... does not load anything.

After running my code a random number of times, PHPExcel creates the directories _rels, docProps, & xl in the root folder with various files in them.

OS: Ubuntu 12.04

Viewing all articles
Browse latest Browse all 2707