Search code examples
jasper-reportsdart

Jasper-reports and Dart


So I've been searching for 1 hour on Google and this website if I can generate reports using Jasper reports in Dart. Anyone know if it is possible? Is there any plug-in? Thanks in advance


Solution

  • You can make a request from the browser (might be Dart) to the server (probably in Dart according to your question) and the server has to forward the request to a service running in Java or an application built in Java which generates the PDF file and returns the file (or the path to the file) to the Dart server which itself serves it to the browser.

    You can make a Java service that accepts HTTP requests directly and skip the Dart server. The Browser can then directly access the Java service that generates the PDF and receive it from there.

    It all depends how your infrastructure looks like.

    (I don't know Jasper Reports, it might offer some functionality that makes this easier. This is just a generic answer).

    You might take a look at this site

    http://community.jaspersoft.com/questions/818313/which-best-way-use-jasperreport-php-application

    I suppose this will apply mostly to Dart as well.

    I found that Jasper Reports offers a standalone server which allows both above described scenarios http://community.jaspersoft.com/project/jasperreports-server

    There seems not to be a dedicated Dart client available (like this one for PHP) but Dart is quite capable of accessing a REST API. It's just a bit more manual labor to access the server than with customized a client library.