KoolReport's Forum

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

Export to Excel from a dashboard not working #1904

Open Larry Schultz opened this topic on on Feb 12, 2021 - 2 comments

Larry Schultz commented on Feb 12, 2021

I have built several dashboards and working great - great product. One of the dashboards I want to export to Excel after a Select widget and click on Button widget. I'm using exact code to export from a Laravel app where export works (direct to file w/o view). Code processes but no export. Does Excel export work within a dashboard?

protected function actionSubmit($request, $response)

{
    include "snapShot.php";
    $report = new snapShot;
    $report->run();
    $report->exportToExcel()->toBrowser("snapshot.xlsx");
}

snapshot.php <?php

class snapShot extends \koolreport\KoolReport

{

use \koolreport\export\Exportable;
use \koolreport\excel\ExcelExportable;

public function settings()
{
    return array(
        "dataSources"=>array(
            "snapShot"=>array(
                "connectionString"=>"sqlsrv:server=xxxxxxxxxxxxxxxxxxxxxxxxxx",
                "username"=>"xxxxxxxxxxxxxx",
                "password"=>"xxxxxxxxxxxxxxxxx",
                "charset"=>"utf8"
            )
        )
        
    );
}

public function setup()
{
    $this->src('snapShot')
    ->query("SELECT * 
                FROM [dbo].[snapshot2019]
    ")
    ->pipe($this->dataStore('snap_shot'));

  }

}

Larry Schultz commented on Feb 12, 2021

in issue #1892 I see export not yet available in Dashboard? If so is there an estimate of when feature is ready?

KoolReport commented on Feb 12, 2021

Hi Larry, thank you for your good words about dashboard. The export feature will be available in next few versions according to our schedule. It could be about 1 to 2 months from now.

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
None yet

None