Closed martinmurciego closed 5 years ago
Hello, sorry you had trouble.. have you tried like this?
const path = require('path');
let options {
path: path.join(__dirname, 'lib','jasperreports-6.7.0'),
this is assuming your index file, where this configuration is, is located in
/home/username/project/index.js
and your jasperreports is in
/home/username/project/lib/jasperreports-6.7.0
Regards.
I'm also having trouble while putting the library path. Can you please elaborate it?
Hello Ifran, as I said before, if your index is in
/home/username/project/index.js
and your jasperreports is in
/home/username/project/lib/jasperreports-6.7.0
you should place
const path = require('path');
let options {
path: path.join(__dirname, 'lib','jasperreports-6.7.0'),
in your index.js
What kind of trouble are you having, specifically?
Hello @agmoyano can you please explain what path you needed ? I have jasper report installed on my computer but still didnt get the way how can I fix this issue
This was the first project I came across several years ago but I never knew how to configure it to work. One that if it worked for me and I am uploading with the included libraries you can find it in my repository that a fork with the libraries as I told you: https://github.com/martinmurciego/node-jasper-server
Original: https://github.com/andrewloable/node-jasper-server
I tried again to configure this module after a long time and I do not understand it. You closed the issue but in reality did not finish understanding and resolving. It is true that you must allow a relative path as other options. But I can not configure it.
https://github.com/agmoyano/node-jasper/issues/28#issuecomment-402481553
The path to the jasper report library directory unnziped within the project is:
/app-sample/lib/jasperreports-6.7.0/dist