PHP Classes

Cannot remove sheet

Recommend this page to a friend!

      eiseXLSX  >  All threads  >  Cannot remove sheet  >  (Un) Subscribe thread alerts  
Subject:Cannot remove sheet
Summary:Impossible to remove sheet due to missing files
Messages:2
Author:MARTIN
Date:2019-01-28 21:07:58
 

  1. Cannot remove sheet   Reply   Report abuse  
Picture of MARTIN MARTIN - 2019-01-28 21:07:58
When I try to remove a sheet 2, I have errors due to the fact that the file /xl/worksheets/_rels/sheet2.xml.rels does not exist.
Here errors encountered:

Notice: Undefined index: /xl/worksheets/_rels/sheet2.xml.rels in /eiseXLSX/eiseXLSX.php on line 792
[line: if ($this->arrXMLs[$sheetXMLRelsFileName]->Relationship) ]

Notice: Trying to get property of non-object in /eiseXLSX/eiseXLSX.php on line 792
[line: if ($this->arrXMLs[$sheetXMLRelsFileName]->Relationship) ]

Notice: Undefined index: /xl/worksheets/_rels/sheet3.xml.rels in /eiseXLSX/eiseXLSX.php on line 1393
[line: if($this->arrXMLs[$relPath]->Relationship) ]

Notice: Trying to get property of non-object in /eiseXLSX/eiseXLSX.php on line 1393
[line: if($this->arrXMLs[$relPath]->Relationship) ]

Notice: Undefined index: /xl/worksheets/_rels/sheet3.xml.rels in /eiseXLSX/eiseXLSX.php on line 1457
[line: $this->arrXMLs[$newName] = $this->arrXMLs[$oldName]; ]

  2. Re: Cannot remove sheet   Reply   Report abuse  
Picture of Ilya Eliseev Ilya Eliseev - 2019-01-31 13:56:43 - In reply to message 1 from MARTIN
Hi,

You can remove only sheets that's been initially exist in the template.

 
For more information send a message to info at phpclasses dot org.