black beard
black beard

Reputation: 21

jasper report integrate in laravel 5

I have a problem with this integration in Laravel 5:

Exception in JasperPHP.php line 178: Your report has an error and couldn't be processed! Try to output the command using the function output(); and run it manually in the console.

Code where exception happens:

\JasperPHP::process(
'D:\wamp\www\laravel-Project\reports\center_report.jasper',
false,
array("pdf", "rtf"),
array("php_version" => phpversion()),
$database
)->execute();

Upvotes: 2

Views: 5174

Answers (1)

Ishahriyar
Ishahriyar

Reputation: 19

They Don't provide a specific package for Laravel5 but you can easily use JasperPHP by following their instructions https://github.com/cossou/JasperPHP

Upvotes: 1

Related Questions