KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Export PivotTables #2752

Open Aljaz Ketis opened this topic on on Jul 5, 2022 - 2 comments

Aljaz Ketis commented on Jul 5, 2022

I saw that from version 10.0 forward you supported PivotTables in BigSpreadSheets and I try to use it for one of the reports and it throws an error:

it worked when using koolreport\excel\ExcelExportable; All i did is change

use koolreport\excel\ExcelExportable;

to use koolreport\excel\BigSpreadsheetExportable; and when exporting it I call

$this->exportToXLSX('ExampleReportExcel')->saveAs($path);
Aljaz Ketis commented on Jul 5, 2022

Found out that it throws the error only when the pivot collection is empty, so no rows in datastore to display

Sebastian Morales commented on Jul 6, 2022

We will check this issue when export to big spreadsheet with an empty datastore. Thanks for your feedback!

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
bug

Export