Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private JasperPrint getJasperPrint(Map<String, Object> parameters, String s) {
- JasperReport jasperReport;
- try {
- InputStream inputStream = new ClassPathResource(s).getInputStream();
- jasperReport = JasperCompileManager.compileReport(inputStream);
- JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, new JREmptyDataSource());
- return jasperPrint;
- } catch (JRException | IOException e) {
- throw new ValidationException(e);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement