Skip to content

igoratsok/node-jasper-server-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JasperServer Integration

JSIntegration is a node module that quickly integrates node.js to Jasper Server and retrieves the binary data of the exported report.

Usage

Usage is quite simple:

var JSIntegration = require('./JSIntegration.js');

var jsIntegration = new  JSIntegration(
  'http://localhost:8080/jasperserver', // URL of the Jasper Server
  'reports/my_report_unit',             // Path to the Report Unit
  'pdf',                                // Export type
  'jasperadmin',                        // User
  'jasperadmin',                        // Password
  {"P_ID_ALUNO" :  1}                   // Optional parameters
);

var data = jsIntegration.execute()
  .then((data) => {
  // Do whatever you want with the binary data
  console.log(data);
  })

  .catch((error) => {
  console.log(error);
  });

About

Jasper Server Integration for node.js.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors