Search in sources :

Example 1 with JasperReportsPdfView

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);
}
Also used : JasperReportsPdfView(org.springframework.web.servlet.view.jasperreports.JasperReportsPdfView) ModelAndView(org.springframework.web.servlet.ModelAndView)

Aggregations

ModelAndView (org.springframework.web.servlet.ModelAndView)1 JasperReportsPdfView (org.springframework.web.servlet.view.jasperreports.JasperReportsPdfView)1