KoolReport's Forum

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

Export PDF PivotTable #1004

Closed SOFMAN opened this topic on on Jul 22, 2019 - 2 comments

SOFMAN commented on Jul 22, 2019

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>',
    ),
));
David Winterburn commented on Jul 23, 2019

Hi,

Please download the latest version of either KoolReport Pro (4.1.2) or the Pivot package (6.1.2) and try pivot table pdf export again. Thanks!

SOFMAN commented on Jul 23, 2019

If it worked, thanks

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
solved

None