Hi, i have a problem to export PDF is blank with PivotTable, Version Koolreport 4.0
Code:
$report = new ReporteItemsNegociados();
$report->run()
->export('ReporteItemsNegociadosExport')
->pdf(array(
"format" => "A4",
"orientation" => "landscape",
"margin" => array(
"top" => "0.2in",
"bottom" => "0.3in",
"left" => "0.3in",
"right" => "0.3in"
),
))
->toBrowser("ReporteItemsNegociadosExport.pdf", true);
\koolreport\pivot\widgets\PivotTable::create(array(
"dataSource" => $this->dataStore("itemsNegociaciones"),
'rowDimension'=>'row',
'showDataHeaders' => true,
'hideTotalRow' => false,
'hideTotalColumn' => false,
'hideSubtotalRow' => true,
'hideSubtotalColumn' => true,
'rowCollapseLevels' => array(2),
'totalName' => '<b class="">TOTALES</b>',
'width' => '100%',
'headerMap' => array(
'CANTIDAD MUESTRA - sum' => '<b>CANTIDAD MUESTRA</b>',
'CANTIDAD NEGOCIAR - sum' => '<b>CANTIDAD NEGOCIAR</b>',
'PRECIO - sum' => '<b>PRECIO</b>',
'SUBTOTAL - sum' => '<b>SUBTOTAL</b>',
),
));