use of org.springframework.web.servlet.view.jasperreports.JasperReportsPdfView in project openlmis-stockmanagement by OpenLMIS.
the class JasperReportService method generateReport.
private ModelAndView generateReport(String templateUrl, Map<String, Object> params) {
JasperReportsPdfView view = new JasperReportsPdfView();
view.setUrl(compileReportAndGetUrl(templateUrl));
view.setApplicationContext(appContext);
return new ModelAndView(view, params);
}
Aggregations