Skip to content

Weird text appears instead of readable texts. #70

@roiji

Description

@roiji

Hi!

I've recently came across this library due to my frustration in PHPExcel not being able to read large (wide) XLSX files. Thank you.

I've made it ran after fixing ZipArchive::extractTo(): Permission denied error on my Mac (just pass SpreadsheetReader() a 2nd parameter containing an array that includes "TempDir")..

But print_r($Row) shows this:

<br />
<b>Warning</b>:  pathinfo() expects parameter 1 to be string, array given in <b>/Applications/XAMPP/xamppfiles/htdocs/spreadsheet-reader-master/SpreadsheetReader.php</b> on line <b>60</b><br />
Array
(
    [0] => PK������ÆK1E�_rels/.rels­’ÏJ�1�‡ï}Š�{w¶�Dd³½ˆÐ›H}€˜Ìþa7™0�u}{ƒ�Z©¥��I~óÍ7CšÝ�fõŠœGŠFoªZ+ŒŽü�{£Ÿ�÷ë�½kWÍ#ÎVJ$�cʪÔÄlô ’n�²�0Ø\QÂX^:â`¥�¹‡dÝd{„m]_�ÿdèöˆ©öÞhÞû�V‡÷„—°©ëF‡wä^�F9ÑâW¢�-÷(F/3¼�OÏDSU �N»l/wù{N�(Ö[±àˆq�¸T³Œ˜¿u<¹‡r�?�ç„®þs9¸�F�þ¼’MéËhÕÀÑ'h?PK��fª‚·à
    [1] => �PK������ÆK1E�docProps/app.xml��QKÃ0�…ßý�%øº&­iÌFÚ!ˆOÊ�«ì­Ääv‹´IHâØþ½QÁíÙÇÃ9|÷œ+ÖÇy*��¢q¶EUIP�V9mì®E¯ý£"&iµœœ…�� ¢uw%žƒó�’�Xd‚�-Ú§äW�Gµ‡YÆ2Û6
    [2] => £�³LY†�vãh�Ü
    [3] => õ9ƒM¸&„a8&°�ôÂÿ�Ñ/quHÿ…j§¾ûÅ·þä3¯�½KrêÍ]E–�Ÿ¥¸ó~2J¦<¿{4ï�6?<LË›’”ôúIªÍËvØr60Z\$†\ø�T¬–ºá�çœÊzT54·œhM�Ê�g\ÓŠ�%("ðå-�Ï�ì¾PK���7tNù†�PK������ÆK1E�docProps/core.xml�’Qo‚0�Çß÷)HßK)¨¸�ða‹O[b"fËÞšrb3(¤­¢ß~�•9ãÃÞzýÿïwwí%‹c]y�ÐF6*EÔ���J4…TeŠ6ù�Ï‘g,W�¯��):�A‹ì)�-��†•nZÐV‚ñ�H�&Ú�í¬m�!Fì æÆw�åÄm£kn]¨KÒrñÍK a�ÌH
)

here is the code that i've used:

<?php
    require('SpreadsheetReader.php');
    $Reader = new SpreadsheetReader('gale.xlsx', array('TempDir' => 'xl'));
    $Sheets = $Reader -> Sheets();
        $Reader -> ChangeSheet(1);
        foreach ($Reader as $Row)
        {
            print_r($Row);
        }
?>

I am only interested in the 2nd sheet.
The XLSX used to have a password.
Other sheets are password protected from being edited.
Some cells on the 2nd sheet points to a reference column on another Excel file or points to a column on a protected sheet. (Sorry, I don't know how it's formally called. When I click on the cell, a drop down appears).
The sheet has a lot of styling because it is a report to the managements.

I tried issue #38 but it only displayed question marks (?????) on some parts.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions