PHP Classes

Empty sheets!

Recommend this page to a friend!

      SimpleXLSX  >  All threads  >  Empty sheets!  >  (Un) Subscribe thread alerts  
Subject:Empty sheets!
Summary:Problem with empty sheets.
Messages:2
Author:Anders Wallin
Date:2011-03-27 08:30:47
Update:2011-03-27 09:19:00
 

  1. Empty sheets!   Reply   Report abuse  
Picture of Anders Wallin Anders Wallin - 2011-03-27 08:30:47
Hello!

Great work with Simple XLSX! I have some problems though. If I try to
open an empty sheet then the class gives the following error:
"Fatal error: Uncaught exception 'Exception' with message 'Invalid
cell index.' in C:\wamp\www\ simplexlsx\simplexlsx.class.php:118 Stack
trace: #0 C:\wamp\www\simplexlsx\simplexlsx.class.php(60):
SimpleXLSX->_columnIndex(NULL) #1
C:\wamp\www\simplexlsx\simplexlsx.example2.php(18):
SimpleXLSX->dimension(3) #2 {main} thrown in
C:\wamp\www\simplexlsx\simplexlsx.class.php on line 118"

Could you please help me with a snippet of code that would report
empty sheet or something similar? I'm working with example 2 and
adapting it to my needs. My knowledge of php is still limited. I would
appreciate any help.

Best regards!
Anders Wallin
Sweden

  2. Re: Empty sheets!   Reply   Report abuse  
Picture of Sergey Shuchkin Sergey Shuchkin - 2011-03-27 09:19:00 - In reply to message 1 from Anders Wallin
check $xlsx->sheetsCount() before out sheet 3,4