Hi, the classes ReportStarter and ZkJRViewer has many deprecated warnings because they are using obsolete approaches for the jasper exporter.
This ticket is to solve it.
Committed solution from in his ReportStarter:
For the class ZkJRViewer - we have discussed with and it seems the approach of that viewer is very wrong.
ZkJRViewer is not just a viewer class - but is creating the report (a model class), a better approach would be to refactor ZkJRViewer to call the ReportStarter - and make viewer just that -> a viewer of files rendered in another class.
This is inline with and allowing jasper to be a replaceable plugin as has proposed and is trying with his de.bxservice.report.jasper plugin (but ZkJRViewer is making it difficult).
Hi, I have refactored the ZKJRViewer class only replacing deprecated methods with new methods, is it wrong? In my conception the refactor is the next step, because it can cause a lot of refactors in other classes and at this moment I need a fast and good solution for an input of JasperPrint List for print many documents in one click.
In my changes to make it possible I have duplicated the constructor of ZKJRViewer by changing the input parameter for JasperPrint List and make several changes in class.
The patch is in attachment.