Jasper Report

3 years ago

ihsanberahim

Code

use Jaspersoft\Client\Client as c;

// return false;

$jc = new c(
        'http://127.0.0.1:8080/jasperserver',
        'jasperadmin',
       	'jasperadmin'
);

$rs = $jc->reportService();

$options = array(
    "address" => 'mock',
);

$report = $rs->runReport('/reports/testing/testing', 'pdf', null, null, $options);

Storage::disk('local')->put('testing.pdf', $report);

Output

HELO: Local email testing for your desktop!