KoolReport's Forum

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

Call to undefined method ExcelReport_Ex::run() #1209

Closed Sowmya opened this topic on on Dec 9, 2019 - 3 comments

Sowmya commented on Dec 9, 2019

Dear KoolReport team,

I am struggling with this error from last 4 Hrs, I googled so much, but I didn't found the solution. Please help me.

I am using PHP Codeigniter3 MVC architecture. I am working on Export Excel.... I followed same as your example. My controller code is as follows

class Excel extends CI_Controller
{
	
   	public function index()
   	{
   		$this->load->helper('url');
   		$this->load->database('MainiDM');
   		
   		include APPPATH."reports\ExcelReport_Ex.php";

   		$report = new ExcelReport_Ex;
                $report->run()->render();
   	}
}

It tends to Error as follows

Message: Call to undefined method ExcelReport_Ex::run()

Filename: C:\xampp\htdocs\CI3\application\controllers\Excel.php

Please let me know, which mistake I done here.

                                    Thank You
KoolReport commented on Dec 9, 2019

Please check the ExcelReport_Ex class whether it is extended from \koolreport\KoolReport.

Sowmya commented on Dec 9, 2019

Ya. Solved. Thank You...

KoolReport commented on Dec 9, 2019

You are welcome.

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
help needed
solved

Excel