I see in your faq that there are multiple ways to install the license key, but there's no reference on how to do so when running from a docker image....
Posts made by cjrutherford
-
How to apply license key on Docker image?posted in general forum
-
RE: Can't install additional recipies.posted in general forum
That worked! and the electron recipe is working fantastically now!
-
RE: Can't install additional recipies.posted in general forum
cancel that, I'm just going to install it on a windows server.
-
RE: Can't install additional recipies.posted in general forum
I think I may just want to do the docker install that has everything stored inside itself. What's the latest url for the full docker image( or jsreport/????)?
I tried to follow the instructions listed on the dockerhub page, but get this error:
Error Response from daemon: manifest for jsreport/jsreport:1.70-full not found
after runningsudo docker pull jsreport/jsreport:1.70-fullas directed. -
Can't install additional recipies.posted in general forum
Trying to install the electron-Pdf recipie.
I'm using Ubuntu as the OS for the server.
I've installed jsreport with this command:sudo npm install -g jsreport-cliThen I install electron-pdf with the same type of command:
sudo npm install -g electron-pdfbut when I go into jsreport studio, it isn't available. Should I be installing electron-pdf inside the install folder for jsreport?
-
RE: Pagination Questionsposted in general forum
Went through the tutorial, but it doesn't cover what's not supported as far as CSS, and doesn't link I to resources needed to learn the default engines or recipies. Flex box is working perfectly with the appropriate resets. Only when I try to use the helper.
-
RE: Pagination Questionsposted in general forum
I'm going to put this in the playground for more help.
It runs, but is consequently blank all around....
-
Pagination Questionsposted in general forum
Hi,
I have a report that should generate multiple regular numbers of a report per page. Think of it like either Business card printing, name badge printing, or receipt printing etc.
I don't mind using handlebars to process this, and there's supposedly a solution detailed here, but I'm not sure how jsreport handles user created helpers.
This link is an article on how to make a "Grouped" Each Helper:
grouped_each HelperFor Example, I have a business card sheet that I'm printing name badges onto. There are 8 cards per sheet, and each row of cards, 2 per row, is the front/back of a single name badge. This means there should be only 4 badges per sheet.
I'm using Flexbox in my CSS to shift the front and back sides onto a single row. The biggest issue I've come across is maintaining the spacing across pages. I want to eventually have it look something like this.
<div class='container'> {{grouped_each 4 Badges}} <div class='cardContainer'> <div class='card'> <div class='leftCard'> <!-- left Card Content --> </div> <div class='rightCard'> <!-- right Card Content --> </div> </div> </div> {{/grouped_each}} </div> -
RE: Getting a Blank PDF when Running Report Via Api.posted in general forum
That works perfectly!
Thank you!
-
RE: Getting a Blank PDF when Running Report Via Api.posted in general forum
That sounds like a good idea let me try that out!
-
Getting a Blank PDF when Running Report Via Api.posted in general forum
Trying to get a reporting tool working, but when I get the report back from the API, I get only blank PDF's with no output. The page counts is correct, but it's not showing the report content in Acrobat.
What could be the issue here?
My code to request the Report is as follows:
var options = { method: 'POST', url: 'http://192.168.100.64:5488/api/report', headers: { 'postman-token': '81e5ced9-d7b1-80bd-5948-a6934e67d4ae', 'cache-control': 'no-cache', 'content-type': 'application/json' }, body: { template: { shortid: 'HJsjiZhob' }, data: { Badges: badges }, options: { 'Content-Disposition': 'Attachment; filename=badges.pdf' } }, json: true }; rq(options, function (error, response, body) { if (error) throw new Error(error); console.dir(body); fs.writeFile(path.join(config.outFolder, 'badges.pdf'), body, 'binary', (err) => { if(err) log.error(err); log.info('Successfully Wrote Badge Sheet.'); }); });NOTE: var badges is defined/built prior to this code.