I've updated the config code in previous comment...
Posts made by admin
-
RE: Rendering error on AWS but not on local docker
-
RE: Rendering error on AWS but not on local docker
You need to use also the config
"extensions": { "chrome-pdf": { "launchOptions": { "protocolTimeout": 600000 } } }
This became useful in the later versions of Chrome, we will set this for you in the next release https://github.com/jsreport/jsreport/issues/1202
-
RE: Changing parameters of xslx document in html-2-xslx recipe
The html-to-xlsx doesn't support natively changing the page size yet, it is in the backlog so far.
However, you can reach this with postprocessing.
Documentation
https://jsreport.net/learn/html-to-xlsx#postprocess-using-xlsx-recipeDemo setting page size
https://playground.jsreport.net/w/admin/C3ERuayUNot sure what you mean with "enter the sheet on one page"...
-
RE: 504 Gateway Time-out
I see, the playground got stuck somehow, we will analyze how it happened.
It is running now... I apologize for the inconvenience.Please note the playground service doesn't have HA.
It is just a fiddling tool to replicate issues and demonstrate features.
You shouldn't depend on it in production deployments. -
RE: 504 Gateway Time-out
I am not sure what service do you mean? The jsreportonline? Or do you mean your on prem jsreport installation?
If you use jsreportonlione, please email me what is your account(subdomain) name to
support@jsreport.net
.The 504 Gateway Time-out is a web server timeout, not jsreport one. It means that the web server was waiting for response from jsreport, but it didn't response in time. You will find logs in
app/logs
for your on prem application. Or in the studio profiler in jsreportonliner. -
RE: Deno V2 support ?
I'm afraid the compatibility will never be 100%.
I've tried to give it a look... There is some problem with the
chrome/puppeteer
compatibility. If I skip chrome based recipes, the app boots, but shortly exits. Not sure what is the problem...Maybe a heavy deno user from the community can give it a try?
We are currently focusing on adding recipes features and improving performance. The support for other runtimes isn't a big priority.
-
RE: Module Read Error
It seems like you use somewhere the module helper
{{module "a path"}}
but don't provide the argument as a string.
Are you able to reproduce the problem in the playground?
https://playground.jsreport.net/ -
RE: Xlsx receipe each
Yes, I see.
tried many different scenarios but the second table always starts from the last row of the first table.
Unfortunately, this is how it works by design. We have no way of knowing if you want the content at the end of the first table or not. I've submitted a task to check if we can add a new option that would allow having two tables next to each other.
https://github.com/jsreport/jsreport/issues/1198At this moment, one solution is to define cells contents including headers in the helper, and use a single
each
. To keep formatting, you will need to postprocess the xlsx using xlsx transformation helpers
https://jsreport.net/learn/xlsx#transformationDemo
https://playground.jsreport.net/w/anon/t9UNZpS4The other option is to use just xlsx transformation helpers from the beginning as this gives you the most flexibility.
-
RE: Xlsx receipe each
Hmm, it should still work in my example...
A different number of items in both arrays works there.
If you want a header for one and not for the other, you can just prepend the header and heave#each
on the second row.
If you need to have it dynamic, you will have#if
for first item which will display header. -
RE: Xlsx receipe each
It is Christmas vacation time, so getting the right people online will take some time. :)
At first glance, there seems to be a problem with multiple
each
in one row. Maybe you can just use oneeach
and use a helper call to merge those two arrays into one. Like here
https://playground.jsreport.net/w/anon/5r07l9Fq -
RE: Xlsx receipe each
Please share the minimal playground demo replicating the problem so we can take a look.
https://playground.jsreport.net/ -
RE: How can I insert external pdf to report?
There is an
appendAfterPageNumber
option to append in the middle.append(sourcePdfBuf, appendedPdfBuf, options) parameters: - sourcePdfBuf -> pdf buffer to which to append the second param - appendedPdfBuf -> pdf buffer appended after source - options -> (optional) options.appendAfterPageNumber -> the number of page from sourcePdfBuf which the pages from appendedPdfBuf should be inserted after
If you need to insert content in the middle of the page, you need to use the merge.
-
RE: How can I insert external pdf to report?
I am not sure what your helpers
pdfMerge
andmerge
andpdfRaw
do, but there is no way to embed another pdf directly from the html and templating engines. What you need to do is to invoke pdf utils from theafterRender
script and usejsreport.pdfUtils.append
to dynamically assemble multiple pdfs together.
https://jsreport.net/learn/pdf-utils#usage-in-script -
RE: Import Template Performance Issue after upgrade to 4.7.0 from 4.3.1
Does this mean that you are replacing the dependency of the deprecated module azure-storage with the successor Azure Storage Blob client library for JavaScript?
Yes
What is the expected release date and is there a beta for testing available?
You can use dep
@jsreport/jsreport-fs-store-azure-storage-persistence@4.1.0
-
RE: Scheduled
To help you, please elaborate more... Do you have some specific configs? Every template doesn't run? What if you use the "Run now" button schedule, does it run? What if you set the schedule minute interval like this, does it run?
Could you provide output logs?
-
RE: apply custom font like 'al-mohanad' for jsreport asp mvc5
Would you be able to share the repo replicating the problem?
In general, you can install the font to the OS, or use a webfont from cdn, or embed font in base64
-
RE: component at the bottom of the last page
If the height of the component is fixed, then this demo should work for you
https://playground.jsreport.net/w/admin/Ci3l8_UQ -
RE: Import Template Performance Issue after upgrade to 4.7.0 from 4.3.1
The support for managed identity will be part of the next release.
-
RE: In The Component Function Two parameter Will not Work.
What is the idea of that dot
.
? That is likely the problem.{{component (filePath ../lib ../cid ../ver) . dynamicData="ABCDDDDDDDD"}}
-
RE: How to insert barcode in docx using helper?
See an example here
https://playground.jsreport.net/w/anon/x1IyJsyMIn handlebars, when you want to use a helper to calculate the attribute of another helper, you use
()
subexpressions.
https://handlebarsjs.com/guide/expressions.html#subexpressions{{docxImage src=(barcodeHerper "qrcode" data.invoiceNumber)}}