Skip to content

Multiple sheets don't work #2

@SimonHassen

Description

@SimonHassen

Multiple sheets can't work.
Actually the code can't support multiple sheets.
In the encode method, sheetIndex is never increased.
Adding this will fix it:

if ($sheetIndex > 0) {
    $spreadsheet->createSheet($sheetIndex);
}

$spreadsheet->setActiveSheetIndex($sheetIndex);

$sheetIndex++;

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions