[#5047] - Call Jasper Report from PHP

Category:
General
Priority:
Normal
Status:
New
Project: Severity:
Minor
Resolution:
Open
Component: Reproducibility:
N/A
Assigned to:

Hi,

I have setup Jasper Report server(Community Edition) on AWS. When I Call a report from PHP page, no report coming.

What can be the issues. Is some component missing?

Thanks.

// $start = microtime(true);
require_once __DIR__ . "/autoload.dist_org.php";

use Jaspersoft\Client\Client;

$c = new Client("http://localhost:8080/jasperserver", "jasperadmin", "jasperadmin");
$options = array('month_h' => $this->month, 'year_h' => $this->year, 'user_h' => $this->territory);
$report = $c->reportService()->runReport('/reports/CBLWAY_REPORTS/HELPDESK/HD_User_Summary_Report_03_27', 'html', null, null, $options);

echo $report;
// $time_elapsed_us = microtime(true) - $start;
// echo $time_elapsed_us;
?>

v6.1
jagath.ath's picture
Joined: Jul 6 2015 - 9:48pm
Last seen: 7 years 1 month ago
Feedback
randomness