KoolReport's Forum

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

Using cloudexport with Instant package #1472

Open Kris opened this topic on on Jun 4, 2020 - 4 comments

Kris commented on Jun 4, 2020

Hello,

I was using phantomjs to convert to pdf using the code below - I want to convert the code to cloudexport

 require_once(koolreport/core/autoload.php");
 $clsExport = new \koolreport\instant\Exporter;
 $clsExport::export("myfile.html");
 ->pdf($options)
 ->toBrowser("myFile.pdf",true); 

But when I try this there is a error

 require_once(koolreport/core/autoload.php");
 $clsExport = new \koolreport\instant\Exporter;
 $clsExport::export("myfile.html");
 ->chromeHeadlessio("my-token")
 ->pdf($options)
 ->toBrowser("myFile.pdf",true); 

Please advise, Kris

David Winterburn commented on Jun 5, 2020

Hi Kris,

Please open the file instant/ExporterTempReport.php and replace the following line:

    use \koolreport\export\Exportable;

with this:

    use \koolreport\cloudexport\Exportable;

After that please try cloudexport and let us know the result. Thanks!

Kris commented on Jun 5, 2020

Thanks that worked - also need to replace in instant/Exporter.php for it work

return $report->export();

to

return $report->cloudExport(); 

Creating the PDF works but any images in the html are not showing the pdf, Is there any other setting?

Kris

Kris commented on Jun 5, 2020

Seems like there was an issue with image path, I figured it. it works now.

It would helpful to modify the instant package so it can accommodate cloudexport and normal export

David Winterburn commented on Jun 8, 2020

Hi Kris,

We will add the cloudexport option for Instant package in the future release. Thanks a lot for your suggestion!

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