These are chat archives for jsreport/jsreport

18th
Sep 2016
Unforgiven-wanda
@Unforgiven-wanda
Sep 18 2016 10:51
Hello again, just a small question about jsreport-core: Do i have to initialize it jsreport.init() each time I want to generate a report and have it hang for 10 seconds? Isn't there some way to initialize it only once in my project?
Jan Blaha
@pofider
Sep 18 2016 12:02
sure, call it just once at the start
create a extra node file/module where you keep jsreport instance and require this module everywhere you need it
Unforgiven-wanda
@Unforgiven-wanda
Sep 18 2016 12:03
But unless I have jsreport.init().then( I trigger an error saying I should call jsreport.init before calling render
Jan Blaha
@pofider
Sep 18 2016 12:03
yes
calling require('jsreport-core')() will give you new instance
mmt
Unforgiven-wanda
@Unforgiven-wanda
Sep 18 2016 12:04
Could I trouble you for a code example please? I'm a little confused here
Unforgiven-wanda
@Unforgiven-wanda
Sep 18 2016 12:05
Thank you. I'm taking a look at it now. I'll let you know if It works for me. Again, thank you
Jan Blaha
@pofider
Sep 18 2016 12:05
sure, I'll be here...
Unforgiven-wanda
@Unforgiven-wanda
Sep 18 2016 12:56
Okay. I'm having trouble translating this into ES6. I'm still not at all familiar with it
Unforgiven-wanda
@Unforgiven-wanda
Sep 18 2016 14:58
Also, as an aside: I'm using JSreport inside a Meteor project, however, ever since I installed the package and required it, Meteor's live reload feature just stopped working, I have to refresh manually after each change; what's more, it's terribly slow. (On Windows, haven't tried it yet on Linux). Anyway, do you have any idea where this could come from?
Jan Blaha
@pofider
Sep 18 2016 18:28
@Unforgiven-wanda Hm, what exactly is the problem with ES6 ? No idea what is wrong with live reload in meteor, but you can alway exclude jsreport from live reload, right?