We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
I have used the WithMultipleSheets concern, but can't find a way using events to set $writer->writeAllSheets(); for HTML writer as explained here : https://phpspreadsheet.readthedocs.io/en/develop/topics/reading-and-writing-to-file/#html
$writer->writeAllSheets();
I've seen this related issue : #386
The only way I found is by hacking Maatwebsite\Excel\Writer in the write function :
if ($writer instanceof Html && $export instanceof WithMultipleSheets) { $writer->writeAllSheets(); }
Is there other way to achieve this ? Regards
The text was updated successfully, but these errors were encountered:
@spout you can access the Writer via an Event: https://laravel-excel.maatwebsite.nl/3.1/exports/extending.html
Sorry, something went wrong.
@patrickbrouwers I've tried this, but the event beforeWriting is called before : https://github.com/Maatwebsite/Laravel-Excel/blob/78f5bf3713db73f6ab1550cc63399fc6b24b29d9/src/Writer.php#L134
$writer instanciation : https://github.com/Maatwebsite/Laravel-Excel/blob/78f5bf3713db73f6ab1550cc63399fc6b24b29d9/src/Writer.php#L140
I'll see if I can change that
9667380
Next release will write all html sheets
No branches or pull requests
Prerequisites
Versions
Description
Hello,
I have used the WithMultipleSheets concern, but can't find a way using events to set
$writer->writeAllSheets();
for HTML writer as explained here :https://phpspreadsheet.readthedocs.io/en/develop/topics/reading-and-writing-to-file/#html
I've seen this related issue : #386
The only way I found is by hacking Maatwebsite\Excel\Writer in the write function :
Is there other way to achieve this ?
Regards
The text was updated successfully, but these errors were encountered: