Hi, i have a problem to export PDF is blank with PivotTable, Version Koolreport 4.0
Code:
//ReporteGastosController.php $report = new ReporteGastos;
$report->run()
->export('ReporteGastosPdf')
->pdf(array(
"width" => '31cm',
"height" => '21cm',
"margin" => '0.8cm'
))
->toBrowser("reporte_gastos.pdf");
//ReporteGastosPDF.view.php use \koolreport\widgets\koolphp\Table;
use \koolreport\pivot\widgets\PivotTable;
$dataStore = $this->dataStore('co_polizas_detalle');
PivotTable::create(array(
"dataStore"=>$dataStore,
"measures"=>array(
"copd_cargo - sum"
),
'width' => '95%',
"columnCollapseLevels" => array(2),
"rowCollapseLevels" => array(4),
'totalName' => 'TOTAL',
"headerMap" => array(
"copd_cargo - sum" => 'CUENTA'
),
));