Open chiborg opened 1 year ago
Are these protected spreadsheet files? Or are they encrypted? PhpSpreadsheet can't read encrypted files.
Otherwise I'd need to look at the actual files themselves to see exactly what the problem was
Protected, not encrypted. The problem is only with Excel for Mac. When I load a file, what save on Windows or Linux Libreoffice, every codes are working.
So another odd difference between Windows Excel and Mac Excel.
Is it possible to attach example files?
EDAS-ART IMAGINATION-2023-200.xlsx example attached
Thank you for uploading the file. PhpSpreadsheet does have a problem with it, but I think it is unrelated to this issue. I will open a new one for it.
This is:
What is the current behavior?
This code is not working when opens an XLS type file:
$objPHPExcel = IOFactory::load($file->getRealPath());
The error message is: Unexpected file pass record lengthThis code is not working when opens an XLSX type file:
$string = $objPHPExcel->getActiveSheet()->getCell('A1')->getValue()
The error message is: Your requested sheet index: -1 is out of bounds. The actual number of sheets is 0.What are the steps to reproduce?
The files was created by Excel for Mac. There only one sheet, what have write protected cells with password.
Does an issue affect all spreadsheet file formats? If not, which formats are affected?
XLS XLSX
Which versions of PhpSpreadsheet and PHP are affected?
PhpSpreadsheet version: 1.28.0 php version: 8.1.3