Closed martinmurciego closed 6 years ago
+1
Hi.. a bit late, but path of jasperreports should be relative to the file that includes the module
For example, if you have a file index.js that includes node-jasper and you have the following structure
project-dir | index.js | lib | |_ jasperreports-6.2.1 |__ node_modules
path option should be 'lib/jasperreports-6.2.1'
Thank you for making available this module, but could a more detailed explanation of how to put Jasper Report library in the project directory nodejs? Where and how place Jasper Reports Library Folder into project structure?
I downloaded the Jasper Report Library then unzipped and then copy it into a folder that I included in / lib / in the root directory of the project. At least I interpret the line: path: '/lib/jasperreports-6.2.1' en: ... var express = require('express'), app = express(), jasper = require('node-jasper')({ path: 'lib/jasperreports-5.6.0', ...
The result is: Error: ENOENT: no such file or directory, stat '/home/martin/Escritorio/proyecto-consultorio-odontologico/express-starting/node-practica/lib/jasperreports-6.2.1/lib'
I have tried folders and files both jar with Jasper Report Library:
martin @ martin-Satellite-C655: ~ / Desktop / project-office-odontologico / express-starting / node-practice / lib $ dir jasperreports-6.2.1 jasperreports-fonts-6.2.1.jar jasperreports-6.2.1.jar jasperreports-javaflow-6.2.1.jar
And I do not understand how to use it