KoolReport's Forum

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

Could not find phantomjs executed file in bin folder #1235

Closed Sowmya opened this topic on on Dec 30, 2019 - 7 comments

Sowmya commented on Dec 30, 2019

Dear Koolreport team,

I am Koolreport Pro user. We purchased the license for Koolreport, while I am working with PDF exporting it shows me the error 

"Could not find phantomjs executed file in bin folder"

How to resolve this....

I didn't find any "phantomjs" file in export package...

Please give me the solution as early as possible.

David Winterburn commented on Dec 31, 2019

Hi,

Please go to this page and download the phantomjs executable file for your operating system:

https://phantomjs.org/download.html

Then copy the file to folder koolreport/export/bin. Thanks!

Sowmya commented on Dec 31, 2019

I am using windows10, and PHP Codeigniter Framework. Where can I copy this folder?

David Winterburn commented on Dec 31, 2019

Where is your koolreport folder? Did you install koolreport by zip file or by composer. If using composer, it should be in vender/koolreport/export/bin.

Sowmya commented on Dec 31, 2019

I used zip file. Thank you. My PDF file got downloaded.

But it shows empty content.

public function export()
{		
      include APPPATH."reports\PdfExport_Ex.php";
      $report = new PdfExport_Ex;

      $report->run();
      $report->export("PdfExportPdf")->pdf()->toBrowser("PdfExport.pdf");
 }

PdfExportPdf.view.php

<?php
       Table::create(array(
             "dataStore"=>$this->dataStore('pdfdata'),
              "cssClass"=>array(
               "table"=>"table table-hover table-bordered"
            		)
        	));
?>
Sowmya commented on Jan 3, 2020

Support is there or Not?

Sowmya commented on Jan 4, 2020

My issue got solved. By changing

$report->export("PdfExportPdf")->pdf()->toBrowser("PdfExport.pdf");

To

$report->export("PdfExportPdf")->pdf(array(
    "format"=>"A4",
    "orientation"=>"portrait",
    //"zoom"=>2
))->toBrowser("PdfExport.pdf");

Now My PDF File is showing data...

KoolReport commented on Jan 4, 2020

I see, that's great that it works, I have told dev.team to look into your case. May be we should provide default settings for pdf() method so that it will work immediately without parameters.

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

Export