KoolReport's Forum

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

Class "\koolreport\excel\ExcelDataSource" not found #2714

Open vinothkumar opened this topic on on Jun 9, 2022 - 2 comments

vinothkumar commented on Jun 9, 2022

HI , Working on koolreport sample file and getting error as "Class "\koolreport\excel\ExcelDataSource" not found" .

My code is below , please help on this issue

<?php

namespace App\Dashboard; require_once "\koolreport\core\autoload.php"; use \koolreport\processes\Group; use \koolreport\processes\Sort; use \koolreport\processes\Limit;

use \koolreport\processes\ColumnMeta; use \koolreport\excel\ExcelDataSource;

class DashBoardReport extends \koolreport\KoolReport {

use \koolreport\laravel\Friendship;

protected function settings()

{
//    echo  dirname(__FILE__);exit;
    return array(
        "dataSources"=>array(
            "excel"=>array(
                "class"=>'\koolreport\excel\ExcelDataSource',
                "filePath"=>dirname(__FILE__)."/upi_report_file/new_20220607-01-00.xlsx",
            )
        )
    );
}

}

Sebastian Morales commented on Jun 9, 2022

Pls install our Excel package or KoolReport Pro which includes Excel:

https://www.koolreport.com/packages

vinothkumar commented on Jun 9, 2022

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

None