Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines
Hi Ralf,
The form should have method="post" and the Excel export button should be like this:
<form id='form1' class="form-inline" method="post">
<button formaction='exportExcel.php'>Export Excel</button>
<input type='hidden' name='koolPivotUpdate' value=1 />
<?php
PivotMatrix::create(array(
"id" => "pivotMatrix1",
'dataSource' => $this->dataStore('sales'),
...
</form>
and exportExcel.php should be:
require_once "MyReport.php";
$report = new MyReport();
$report->run()->exportToExcel('MyReportExcel')->toBrowser("MyReport.xlsx");
Thanks!
Let KoolReport help you to make great reports. It's free & open-source released under MIT license.
Download KoolReport View demo