agmoyano / node-jasper

JasperReports from Node.js
84 stars 52 forks source link

Newbie for node-jasper #37

Closed thearabbit closed 5 years ago

thearabbit commented 6 years ago

I am a newbie of Jasper Report + Node. Now I base on Meteor, Mongo, Vue. Could has any share/example?

agmoyano commented 5 years ago

In Readme.md you've got a full example, but the basics are as follow:

  1. configure your jasper instance where you have to specify the following:
    1. a path to jasperreports-x.x.x (x.x.x is version number) unzipped from jasperreports-x.x.x-project.tar.gz.
    2. If your report uses database connection, you have to specify drivers.
    3. Again, if your report uses database, you have to specify connections in 'conn' section.
    4. Configure your reports with jasper file path
  2. Use your configured node-jasper instance to generate pdf jasper.pdf(data). data should be as explained in Readme.md, in export definition.

Cheers