l3/jasper-bundle

Use jasper reports

1.0.0 2018-01-26 10:42 UTC

This package is auto-updated.

Last update: 2024-04-11 12:29:53 UTC


README

Bundle Jaspersoft for Symfony2.

Allow generate a Jasper report

Installation

Install the Bundle with this command :

composer require l3/jasper-bundle:master

Add parameters in config.yml

    l3_jasper:
        host: http://rapport-jasper.univ-lille3.fr:8080
        user: theUser
        password: thePaswword

app/AppKernel.php

$bundles = array(
    ...
    new l3\JasperBundle\l3JasperBundle(),
);

use with service.

...
use Symfony\Component\HttpFoundation\Response;

...


$reportEngine = $this->get('l3_jasper.report');
$report = $reportEngine->getReport('/reports/interactive/UIDparameter','html', array("UID" => array("7214","8548")));
return new Response($report);