Hi, I am exporting excel using koolreport via array. That is running fine. Now I want to add one more sheet to in the same exported excel.
require_once "../koolreport/autoload.php";
class ExcelReport extends \koolreport\KoolReport
{
use \koolreport\export\Exportable;
use \koolreport\excel\ExcelExportable;
public function settings()
{
return array(
"dataSources"=>array(
"data"=>array(
"class"=>'\koolreport\datasources\ArrayDataSource',
"data"=>$this->params["data"],
"dataFormat"=>"associate",
)
)
);
}
public function setup()
{
$this->src('data')
->pipe($this->dataStore('Billing'));
}
}
$report = new ExcelReport(array(
"data"=>$rpt_get_bill_list
));
$report->run();
$report->exportToExcel(array(
"dataStores" => array(
'Billing' => array(
"columns"=>array(
)
)
)
))->toBrowser("rpt_get_bill_list.xlsx");
Can anyone help me, how can I add another sheet ?