Hi,
Never mind, i have found the solution for this problem. I missed the setup on the application to enable the exporting process. Below is the code function needed to enable exporting on dashboard.
use \koolreport\dashboard\ExportHandler;
use \koolreport\dashboard\export\LocalExport; // used for PDF, JPG, and PNG export
use \koolreport\dashboard\export\ChromeHeadlessio; // used for PDF, JPG, and PNG export
use \koolreport\dashboard\export\XLSXEngine; // used for XLSX export
use \koolreport\dashboard\export\CSVEngine; // used for CSV export
protected function export()
{
return ExportHandler::create()
->storage(dirname(__DIR__)."/storage")
->engine( // provide multiple engines for multiple file types export
LocalExport::create('LocalPdfEngine'),
ChromeHeadlessio::create('CloudPdfEngine')->token("your-token"),
XLSXEngine::create('ExcelEngine'),
CSVEngine::create('CsvEngine')
);
}
Regards,
Afieq