Questions tagged [jsreport]
jsreport is an open source reporting platform where reports are designed using popular javascript templating engines.
210
questions
1
vote
1
answer
20
views
Send file as buffer
const resp = await client.render(data);
const Writable = require('stream').Writable;
var buffer = [];
const myWritable = new Writable({
write(chunk, encoding, callback) {
console.log(encoding);
...
-1
votes
1
answer
57
views
Convert Josn data to html table
I'm using jsreport and i want to convert json data to html table but i couldnt manage to do it.
This my data :
{
"items": [
{
"order": "65854",
&...
0
votes
0
answers
24
views
Jsreport how to fill the table with data
im trying to to fill a table with data to export it in pdf using jsreport
but i couldnt manage to do it .
This is the html file :
<h1>test{{test}}</h1>
<table class='table striped'>
...
0
votes
0
answers
27
views
To extend time out during js report generation in asp.net core
I have a rather complicated html code in the view and the report needs a longer time than the default 30 seconds to generate the structure. I'm using JSReport version 2.7.1. Initially, I tried ...
0
votes
0
answers
59
views
Jsreport render template and scripts behind enterprise Proxy
I am trying to run jsreport docker container on port 5488 in an environment that uses Nginx for reverse proxy. The Nginx is configured to handle forward proxies as well. When I run JsReport container ...
0
votes
0
answers
80
views
Jsreport css not applying on Linux-CentOS. Any way to fix this issue
I have configure the jsreport functionality on my windows(10) machine. What ever i apply the style and html templates are working fine as expected on my local machine which is windows10. But not ...
0
votes
1
answer
245
views
Sending template API to JSReport from ReactJS
The Node.js client for jsreport works fine with node.js or vanilla, however, when implementing it with React I get various library errors that aren't there when the code runs directly in node. How can ...
1
vote
1
answer
207
views
Rendering html-to-xlsx recipe response from JSReport into a downloadable excel sheet
I have patient data in my databases represented in HTML that I want to print as an excel sheet using JSReport. But when I get the response from the jsreport server with the recipe it reads jibberish ...
0
votes
2
answers
67
views
jsReports assets nodejs
I am trying to add a css stylesheet as asset to a jsReport report.
jsreport.render({
template: {
content: `
<html>
<link rel="stylesheet" type="...
0
votes
1
answer
144
views
asp.net core mvc, make view that all come from string object's html code as a string
I want to make a model that takes all the html codes from dynamic string object. Like this:
Model for dynamic html:
public class PageHtmlModel
{
public string HtmlCode { get; set; }
}
...
2
votes
1
answer
285
views
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 ...
1
vote
1
answer
224
views
Docker (in Azure App Service) Running out of space
A docker container running jsReport is running out of sapce and the container is failing.
Error in logfile
2021-07-13T07: 37: 25.469Z ERROR - Container start failed for xxxx
with System....
0
votes
1
answer
85
views
add a lot of rows with jsreport-core
relates to this.
I have a lot of rows to add to the report. the report can be in excel or pdf.
and I want to add it in bulks.
how it can be achieved?
0
votes
1
answer
116
views
how to append files with jsreport-core
I read in https://jsreport.net/learn/pdf-utils but I didn't find the answer to how to append files via scripts when not using the js report studio.
this is my code:
main.js
const jsreport = require('...
0
votes
1
answer
309
views
New to JSReport with Angular 10
i am using Angular 10 and would like to intergrade JSReport into my program to print report (pdf).
For JSReport, i already setup the server and create a sample report and test it using 'postman', ...
0
votes
0
answers
133
views
JSReport & Handlebars IF value is int
Have been struggling with JSreport couple hours today making PDF report for my app. Now met the problem in if statement, where I need to compare index number to integer.
In Javascript I can compare ...
0
votes
0
answers
79
views
JS-based pdf report builder (with logic and rich-text)
I'm willing to make an easy to use web-interfaced report builder. Basically, I would be like a big html form with some custom logic (if you check this box then that part of the form appears/disappears)...
0
votes
1
answer
1k
views
Failed to load pdf document after downloading the document from IE11
I have an ajax call where I am calling JSReport and downloading the pdf document. In chrome and other browsers, it works correctly. The document is downloaded and I can open it. But in IE11, the ...
1
vote
0
answers
89
views
Jsreport.aspnetcore is not working on iis server
We have implement the jsreport in asp.net core project to save pdf file in physical location. This is working on local setup very well but after publish when we upload the source file on server, ...
0
votes
0
answers
40
views
How to override nightwatch js xml report names with timestamp?
I want to append my nightwatch js xml report files with timestamp of the execution time. How can I do that ? Can anyone please help?
1
vote
1
answer
2k
views
Convert charts from vue-chartjs to a PDF
I'm trying to make a report system with charts are drawn by vue-chartjs, and I wanted to download them as a PDF, or any file.
Here is what App.vue looks like
<template>
<div>
<div ...
0
votes
1
answer
45
views
Only display objects inside of an array with certain type [GRAPHQL]
So, I'm fairly new to programming and I am trying to only display certain objects from a api response array. Besides that, I am using JSReport and Handlebars. Is there a way to filter out the ones ...
0
votes
1
answer
196
views
Blank pdf output using jsreport
I know this has got to have some super easy answer but I am just beginning with this stuff and followed this tutorial: https://jsreport.net/blog/pdf-reports-in-sql-server
Except it gives me a blank ...
-1
votes
1
answer
247
views
JsReport: Formatting date [closed]
I am getting my date from the database in RFC 3339 format:
2020-08-11T00:00:00.000Z
I want the date in the PDF to show as:
2020-08-11
But the date shows as:
Tue Aug 11 2020 02:00:00 GMT+0200 (South ...
0
votes
0
answers
158
views
Recommended jsreport settings for .NET Core client
I have a couple of projects on IIS that utilize jsreport. It works great, except the documentation for setting up the node.js server are limited. I followed the steps shown here: https://jsreport.net/...
0
votes
1
answer
593
views
Page number in asp.net core footer (partial view)
I am using jsreport with my Asp.Net Core MVC project. It is working all right except for page numbers.
I am using a partial view for footer.
Here is the partial view:
<table style="font-size: ...
1
vote
1
answer
311
views
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 ...
0
votes
1
answer
302
views
JsReport in Docker not display footer
I'm using JsReport on .net Core 2.1
As I uploaded it to Azure, it needed to run separately in a Docker container.
https://jsreport.net/learn/dotnet-local#azure-web-apps
however the Footer that showed ...
0
votes
1
answer
550
views
JSReport error: Failed to load resource: the server responded with a status of 404 ()
I am working in JS report for the first time. I have created my JS report tamplate in JS report studio. Now, I am trying to call it from my asp.net application from the client side. But I am getting ...
2
votes
1
answer
677
views
.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 ...
-1
votes
1
answer
28
views
table with td empty first before values. Why?
My table with td empty first before values. Why?
My html is:
<div class="observations">
<div class="sessao_conteudo">
<table class="obs-tabela">
...
0
votes
3
answers
176
views
multiplication of two values data inside table html jsreport
I need multiplication of two values data inside table html jsreport
qty * valor --> calculate inside table row by row
Everything it's ok, just need calculation
<div class="items">
<!-...
0
votes
1
answer
425
views
How to add Charts in JSReport AspNetCore Razor View
I have used JsReport AspNetCore razor views to generate Excel and PDF reports. So far, Generating reports with data has not been a problem. But, now I have to include a chart in every report generated....
0
votes
0
answers
143
views
JsReport load environment variable into resouce
I am using JsReport from Docker: https://hub.docker.com/r/jsreport/jsreport/
I have a resource file template inside JsReport:
{
"env": {
"a": "a-value",
"b": "b-value"
}
}
...
0
votes
2
answers
597
views
JSReport: ASP.net Core Deployment - Could not load file or assembly jsreport.Local
I am using ASP.net Core 3.0 and I wanted to have html to pdf export functionality, I found JSReport as a solution So I followed the Jon Blaha's Implementation of JSReport .net SDK to export html to ...
0
votes
1
answer
56
views
Is it possible create pdf with dropdown field using jsreport and chrome pdf recipe?
I was trying to generate the pdf with dropdown field using Jsreport with chrome pdf recipe so that use can select one of the value from the list and can save but i could not find a way to do that. Is ...
1
vote
1
answer
769
views
jsreport handlebars engine and xlsx recipe: how to fill cell with color
I'm trying to fill a cell with "red" or "green" depending on its value; This is what I tried so far:
{{#xlsxAdd 'xl/worksheets/sheet1.xml' "worksheet.conditionalFormatting"}}
<...
0
votes
1
answer
276
views
html-to-xlsx jsreport recipe with initial xlsx template file - HTTP API request
I try to generate xlsx-to-html recipe report with JsReport HTTP API https://jsreport.net/learn/api and initial attached xlsx template.
The documentatio is missing how to build request body to pass ...
1
vote
0
answers
175
views
Image in div is cut off between page when print
how to make the image go to the next page when it doesn't fit in a page. Is there any way to do it ? I'm using jsreport to create a template. Currently, my div already go to next page, if it doesn't ...
0
votes
2
answers
1k
views
JSReport API Save PDF from Response with Java
I need to save the PDF of the POST service, but I always receive the error:
"Error while extracting response for type [class java.lang.Object] and content type [application/pdf]; nested exception is ...
0
votes
1
answer
329
views
jsreport - handlebars - Xlsx Recipe: add image fail when using a template
Xlsx Recipe: add image fail when using a template
It works on empty example but if I upload a template I get an error :
Error while executing templating engine. Cannot read property 'r:id' of ...
0
votes
4
answers
10k
views
'Access-Control-Allow-Credentials' header in the response is ' ' when trying to send a POST request to an API using Axios
I have a react app running in localhost:3000 and a nodeJS-express server on localhost:8000, I need to send a POST request to the jsreport API, but when I try to send the request I got the following ...
0
votes
1
answer
361
views
jsreport.AspNetCore mvc page to PDF rendering intranet properly but different size while using from remote site
jsreport.AspNetCore mvc page to PDF rendering intranet properly but different size while using from remote site, please help css .invoice-box and the code is
var header = await JsReportMVCService....
0
votes
1
answer
176
views
jsreport-core how add localization?
Consider the following example: https://playground.jsreport.net/w/anon/VkLWfMyMb-7
I was able to recreate this using jsreports-online. How can I add localization to jsreport-core?
app.get('/test', (...
4
votes
1
answer
1k
views
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 ...
0
votes
0
answers
120
views
jsReport doesn't display correct names of a chart using Highcharts
I am using Highcharts on jsReport for exporting .pdf document in which I include pie charts.
When I generate .pdf document, labels of the pie chart don't display correctly. There are only "i" and "l" ...
1
vote
1
answer
420
views
Working usage example of Handlebars Intl with jsreport
I'm looking for working example of how to apply locale for a report inside the jsreport. I'm using handlebars for template.
I've installed handlebars-intl into docker with jsreport by
npm install ...
1
vote
1
answer
422
views
Syncfusion html-pdf Vs JsReoprt html-pdf. Which is better?
I'm trying to create generate dynamic pdf generating from html (will also involve images too, not just text) in asp.net core and thinking of using either jsReport or Syncfusion for this. which is ...
1
vote
0
answers
770
views
Using jsreport from .Net Core Linux Docker container - "Running as root without --no-sandbox is not supported"
When trying to use jsreport from a .Net Core web app running inside a Linux Docker container I get the following:
Running as root without --no-sandbox is not supported
Full Exception:
...
4
votes
1
answer
428
views
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,
...