l3 / jasper-bundle
使用 Jasper 报告
1.0.0
2018-01-26 10:42 UTC
Requires
- php: >=5.4
- jaspersoft/rest-client: ~2.0
This package is auto-updated.
Last update: 2024-09-11 13:25:24 UTC
README
为 Symfony2 集成 JasperSoft。
允许生成 Jasper 报告
安装
使用此命令安装 Bundle
composer require l3/jasper-bundle:master
在 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 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);