jsreport

JsReport in Docker not display footer

我的未来我决定 提交于 2021-02-08 11:56:22
问题 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 the pages no longer works. <div>Page<span class="pageNumber"></span> of <span class="totalPages"></span></div> From what I saw, I need to configure this on the server (JsReport Studio), but in this case I just want the footer, since I couldn't store the skeleton of the page, etc. Is there any

Phantom pdf on Azure in ASP.NET Core

。_饼干妹妹 提交于 2020-01-03 03:01:11
问题 I am using jsreport and the phantom pdf recipe to render a View as a pdf in ASP.NET Core . The project is running in Azure as an App Service . This works fine on my local machine, but when I publish to Azure , I get the below error message. Exception: Call to Node module failed with error: ReferenceError: e is not defined at module.exports (D:\home\site\wwwroot\serviceCallDetailsPdf.js:18:26) Here is my js file that is in the root of my project (same directory level as wwwroot, Views,

JsReport Page Number with Chrome-pdf recipe

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-25 04:09:32
问题 The documents said the jsreport serves the page number and total pages function with a {#pageNum}/{#numPages} . But this only work with the phantom recipe. I am asking on how to get these attribute in the chrome-recipe. Another document for chrome-recipe. I tried to put the following into the html template already, but still no luck since it is complaining about undefined pages in the index.js function. Any help would be appreciated. Page <span class="pageNumber"></span> of <span class=

I get Error Phantom-pdf recipe was not found and then another error when using jsreport node module

淺唱寂寞╮ 提交于 2019-12-12 01:55:20
问题 When I run this I get an error GET /pdfreport - - ms - - WARRNING! '$data.ObjectID' not supported as computed Key! WARRNING! '$data.ObjectID' not supported as computed Key! WARRNING! '$data.ObjectID' not supported as computed Key! WARRNING! '$data.ObjectID' not supported as computed Key! WARRNING! '$data.ObjectID' not supported as computed Key! Recipe phantom-pdf was not found. GET /pdfreport - - ms - - { [Error: ENOENT, unlink '/var/folders/r0/l6_3z9g55x95s7dp34yt3scw0000gn/T/xcrun_db']

Page number in jsreport

扶醉桌前 提交于 2019-12-11 03:23:34
问题 Is it possible to display page number in jsreport? I couldn't find this either on the homepage of the tool nor by googling. Many thanks in advance! 回答1: I assume you ask for page numbers in a pdf report created by phantom-pdf recipe... You can use special tags {#pageNum} and {#numPages} in template.phantom.header for this: <div style='text-align:center'>{#pageNum}/{#numPages}</div> Note you can use also javascript in header/footer to customize visibility or value of the page numbers. <span id

Phantom pdf on Azure in ASP.NET Core

僤鯓⒐⒋嵵緔 提交于 2019-12-08 17:06:49
I am using jsreport and the phantom pdf recipe to render a View as a pdf in ASP.NET Core . The project is running in Azure as an App Service . This works fine on my local machine, but when I publish to Azure , I get the below error message. Exception: Call to Node module failed with error: ReferenceError: e is not defined at module.exports (D:\home\site\wwwroot\serviceCallDetailsPdf.js:18:26) Here is my js file that is in the root of my project (same directory level as wwwroot, Views, Controllers, etc). module.exports = function (callback, html, htmlFooter) { var jsreport = require('jsreport