Using JasperReports with opentaps
From Opentaps Wiki
Jump to navigationJump to search
opentaps has a view handler which allows you to render output from JasperReports. To use Jasper in your custom application you should incorporate the view handler in your controller.xml:
<handler name="jasperreports" type="view" class="org.opentaps.common.reporting.jasper.JasperReportsViewHandler"/>
Then, for each of your reports, you should define view-map for your report:
<view-map name="MyReport" type="jasperreports" page="/reports/MyReport.jrxml" content-type="application/pdf" encoding="none"/>
Possible values for content-type are application/pdf, text/html, text/csv, application/rtf, text/plain, application/vnd.oasis.opendocument.text