KoolReport's Forum

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

CloudExport saveAs cannot save #2569

Closed saiful opened this topic on on Feb 11, 2022 - 5 comments

saiful commented on Feb 11, 2022

hi, im trying to use CloudExport package to directly save report into pdf file in server storage, but when i run the report, it just displaying the report without saving anything.

the code:

	    $report->run()
            ->cloudExport("FNA_PDF")
            ->chromeHeadlessio("xxxxxxxxxxxxxxxx")
            ->pdf()
            ->saveAs("../storage/app/tmp/".$file_nm.".pdf");

the result:

i have tried to use Excel Export and it run successfully

            $report->run();
            $report->exportToExcel("FNA_EXCEL")
            ->saveAs("../storage/app/tmp/".$file_nm.".xlsx");
Sebastian Morales commented on Feb 11, 2022

That output is most likely because of missing the view file "FNA_PDF.view.php". Pls make sure there's that file with the exactly case sensitive name in the same directory with your report setup file. Rgds,

saiful commented on Feb 14, 2022

the "FNA_PDF.view.php" file are exist, i've tried to use the "->toBrowser()" method and it run normally. but when i use the "->saveAs()" method it didn't work.

do you have alternative solution to save it into laravel storage?

saiful commented on Feb 14, 2022

solved. i use some properties from this references: https://github.com/koolreport/cloudexport

Sebastian Morales commented on Feb 14, 2022

It's nice to hear you solved the issue. Would you pls share which property you used so that other users could learn from it? Tks,

saiful commented on Feb 15, 2022

i just following this step

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

CloudExport