Passing the jsreport template as parameter to api/report
We have understood there is an api : http://localhost:5488/api/report to generate a report by where we need to specify template name, data and other optional parameters. Instead of passing the template name as a parameter, is there any api available where we can pass the template itself as parameter.
Please find in the uploaded image, "my-template" is the template name and this has to be replaced with the actual template (uploaded as Template.jpg)
Perhaps this documentation answers the question?
Hello, thanks for the response. Now that we are not using stored templates, how can we apply custom CSS, page numbers and custom font style?
Any article that explains above requirement?
In case you don't store entities, you won't be able to use assets, so you will need to send styles inline in HTML.
I have used pdf utils for creating paginations for stored templates which creates seperate template, but for dynamic templates how do we add pagination? I have tried couple of links like
but none of them are working in dynamic templates? any sample code or suggestion here?
The example for using pdf utils without stored templates can be found here