KoolReport's Forum

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

Export to Excel #2610

Open FIMM opened this topic on on Mar 10, 2022 - 4 comments

FIMM commented on Mar 10, 2022

Hello Is excel view accept array data?

Sebastian Morales commented on Mar 10, 2022

It doesn't for now but you can overcome it with a simple solution like this:

$datastore = new new \koolreport\core\DataStore();
$datastore->data($arrData);
$datastore->meta($meta); // $meta could be an empty array []
\koolreport\excel\Table::create(array(
    "dataSource" => $datastore,
    ...

Pls try it and let us know if you have any trouble. Tks,

FIMM commented on Mar 10, 2022

Thanks for your reply

datastore = new new \koolreport\core\DataStore();

Here "new" keyword 2 times

FIMM commented on Mar 10, 2022

Hello I want show 2 footer text . Is it Possible

  "footerText"=>"Total: @value",
    "footerText"=>"Total Approved CPD Points :  20",
Sebastian Morales commented on Mar 15, 2022

Just include "\n" in your footerText if you want a new line like this:

  "footerText"=>"Total: @value \n Total Approved CPD Points :  20", //remember to use \n in double quotes for new line meaning, in single quotes \n is just \n 

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

None