Questions tagged [jsreport]

jsreport is an open source reporting platform where reports are designed using popular javascript templating engines.

Open source platform for designing and rendering various reports.

jsreport lets developers to define reports using javascript templating engines (like jsrender or handlebars) and print them into pdf using phantomjs or fop. For more informations about the platform please visit http://jsreport.net

229 questions
7
votes
1 answer

How do I save a jsreport render to file with nodeJs?

I am new to node.js and jsreport, but what I am attempting to do is create a pdf in memory using node.js and then saving it to disk. I need this to be stand-along as it will be running as an AWS Lambda function. var fs =…
Ryan Fisch
  • 2,614
  • 5
  • 36
  • 57
7
votes
1 answer

How to connect jsReport in AngularJS?

I have a problem now about JSReport.. It assumed that I already have an API...What I want now is how to link it with my Client Side which uses AngularJS. If I use Postman it will return a pdf file which is what I want. But my problem is how to show…
Wicked Programmer
  • 273
  • 1
  • 5
  • 15
6
votes
2 answers

What is the TypeScript equivalent to `var x = require("somemod")();`

In node.js I'm using jsreport-core and they do their import like var jsreport = require('jsreport-core')(); with the trailing (). I'm curious what is the best way to replicate this import technique is in TypeScript?
Jason Leach
  • 3,889
  • 7
  • 37
  • 54
4
votes
1 answer

how to include helpers in jsreport

I am using Dotnet Core 2.2 to generate report with JSReport (https://jsreport.net/) I use local JsReport so I sent my template and data to the local server and get back the pdf. Now I need to format date in javascript, so I require to include…
nightingale2k1
  • 10,095
  • 15
  • 70
  • 96
4
votes
1 answer

jsreport - Access is denied message in C#

I'm having an Access Denied message while executing this code: var report = await _service.RenderAsync(new RenderRequest { Template = new Template { Recipe = Recipe.PhantomPdf, Engine = Engine.None, Content =…
Sonhja
  • 8,230
  • 20
  • 73
  • 131
4
votes
1 answer

JsReport .NET Core - Generate PDF from url

Trying to use JsReport to generate a pdf from a url but can't find any documentation or examples in their github repo. Basically I need to generate the pdf and attach it to an email and I've managed to get data back as a byte[], but I can't seem to…
devfunkd
  • 3,164
  • 12
  • 45
  • 73
4
votes
2 answers

Get data from REST API to jsreports

I could successfully get data from the following script and show in report. function beforeRender(done){ require("request")({url:"http://nicolas.kruchten.com/pivottable/examples/mps.json",json:true},function(err, response, body){ …
Marlon Abeykoon
  • 11,927
  • 4
  • 54
  • 75
3
votes
1 answer

How to setup JsReport .NET to use current app folder

Is there way to setup JsReport to use current application folder for storing temp files. Not using common folder C:\Windows\Temp\jsreport? If there are multiple applications running on common IIS, it produces Errors. Error rendering report: A…
Bruno B
  • 199
  • 1
  • 5
3
votes
1 answer

Open pdf in new window with Ajax call

I'm developing web application using nodejs and jquery. There is a reporting part in it. When a user sends some data to server using ajax call (Here I use 'get' method for make easing the question), it should send pdf to the client side and should…
weeraa
  • 1,123
  • 8
  • 23
  • 40
3
votes
1 answer

access Restful API data in jsreport templates

I am using loopback API to get data in JSReport I want to draw DC charts using templates and I need Recipe html of jsreport, so that I can embed it in my dashboard graphs. API for a jsreport can be different every time. i.e. at runtime we don't…
Rizwan Haider
  • 167
  • 2
  • 17
3
votes
1 answer

Starting jsreport service on a specific port through shell script

I'm providing a library which uses jsreport. The server starts working by the following shell script being run : npm install jsreport node node_modules/jsreport --init The default port the service runs is 443. But I want to run it on another…
Arian
  • 7,397
  • 21
  • 89
  • 177
3
votes
1 answer

flot charting with jsreport and epoch time on xasis

I am currently trying to leverage jsreport to generate a simple PDF report which contains a graph of bpsIn over a time range. The data for now is static, but I have run into issues with a few items: (1) When I attempt to leverage moment.js to…
shat
  • 212
  • 2
  • 5
  • 13
2
votes
1 answer

Azure webservice automatically adding NODE_OPTIONS environment variable causing jsreport to throw JsReportBinaryException

I do currently have a working docker image using ASP.NET Core with jsreport on my local image, that does not work on a Azure App Service running Linux containers. The following error is thrown when any rendering is tried: An unhandled exception has…
Phisn
  • 861
  • 8
  • 18
2
votes
1 answer

JsReport save action result in PDF

I would like to generate the PDF based on the View, but I don't want to display it after generating it. Just save to disk. As I am in Azure, I had to use the version with Docker, but it did not print the footer (page count) With that I will use…
Dorathoto
  • 201
  • 7
  • 17
2
votes
1 answer

.NET Core + Docker Alpine + JsReport Local: No such file or directory

I'm trying to run JsReport with .NET Core on a Docker Alpine image. I think that the problem is related to that "hack" https://jsreport.net/learn/dotnet-local#docker Can someone help me translate that to Alpine commands ? Follow my current…
Lucas Freitas
  • 1,016
  • 4
  • 16
  • 37
1
2 3
15 16