Jump to content
We've recently updated our Privacy Statement, available here ×
  • How to execute reports containing fusion charts via Web services


    michaelzhou

    If you want to execute a report that contains Fusion chart, via Web services. There are two ways to do it:

    First is to have JasperReports Server export the report to HTML for you, in this way you can configure the base Fusion SWF location by editing WEB-INF/js.quartz.properties and changing the value of the report.scheduler.web.deployment.uri property to use the external machine name.

    Getting the report as HTML from the server has the disadvantages that hyperlink types such as ReportExecution cannot be handled, and that pagination is not easily achievable. These two shortcomings are addressed by getting a JasperPrint object from the server, but they would then depend on JasperReports Library and need to export the report locally.

    In this latter approach, Fusion charts can be handled in two ways. In the default setup, the JasperPrint object would come with Fusion print elements and the customer would need JasperReports Pro libraries (with license and all) in the client application in order to export the report. The alternative is to pass an argument named TRANSFORMER_KEY having net.sf.jasperreports.transformer.html as value, which would result in the Fusion print elements being transformed into generic Flash elements. Such elements can be handled by the base JasperReports library so JasperReports Library Pro would not be required.


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...