You are correct, I try to add a second item in the json list, the word can not render. It is ok, we will only render one item with the word template.
About the word template closed in the footer, do you mean the new version still can not work ? or should I do anything ?
Posts made by hexl84
-
RE: docxList tag can not work if I set it in word footer after we Upgrade 3.6.0 to 4.3.1
-
RE: docxList tag can not work if I set it in word footer after we Upgrade 3.6.0 to 4.3.1
I install the jsreport 3.6.0 by the npm install. We have run it years. I have export the word assert, word template and test data. I have send the export file to your email.
[0_1712717414153_export.jsrexport](Uploading 100%) -
RE: docxList tag can not work if I set it in word footer after we Upgrade 3.6.0 to 4.3.1
I have send the word template to your email, please check it. I can not upload this word file as a error message "privileges ".
-
RE: docxList tag can not work if I set it in word footer after we Upgrade 3.6.0 to 4.3.1
Hi, please check this word template, it can render a word in 3.6.0
[0_1712021629727_Proposal - Copy (1).docx](Uploading 100%)
-
docxList tag can not work if I set it in word footer after we Upgrade 3.6.0 to 4.3.1
we upgrade our js report server from 3.6 to 4.3.1 at today, then we find a issue, the word template can not work as the error "docxList doesn't match docxContext".
We use the docxList to generate a list report item in the word template, we set the {{#docxList Projects}} at the beginning, then other tags, then some text with tags, then we set a word footer and set the {{/docxList}} in the footer. We need a word footer to show the text in every page. This template works good before we upgrade report server.
If I move the {{/docxList}} out of the footer and remove other tags in the footer, the word template can render, but we can not get what we want.
Could you please help me check what is the issue ?
-
RE: Generate pdf from docx template by unoconv always get timeout error.
Thanks, I fix the timeout issue as your solution, move the templatingEngines node to root level and set a root level timeout value, then the preview and print will not timeout.
-
Generate pdf from docx template by unoconv always get timeout error.
Hi, we want generate pdf from docx template in js report. We find the unoconv extension can do it, so we install unoconv on our js report server, the preview will timeout sometimes. if I retry print, it will works good and print a pdf.
Our website is send the docx template bytes[] and json data both from java script, then js report server return the pdf to website. But the js report server always return timeout error. We check the auto clean folder, the doxc file created success the pdf file also created but the content didn't all convert.
We set the timeout in js report config, but it looks not work."scripts": { "timeout": 600000, "strategy": "http-server" }, "sample-template": { "createSamples": true }, "chrome-pdf": { "timeout": 600000 }, "unoconv": { "command": "python C:/jsreportapp/unoconv.js", "timeout": 600000000 }, "templatingEngines": { "timeout": 6000000, "strategy": "http-server" }
Below is our send print request
var printCommand = { "template": { "recipe": "docx", "engine": "handlebars", "docx": { "templateAsset": { "content": command.content, //word template bytes[] "encoding": "base64" } }, "unoconv": { format: "pdf" } }, "data": command.data //json data };
Below is the timeout error:
"Error: Timeout error during executing script
at Timeout._onTimeout (C:\jsreportapp\node_modules\script-manager\lib\manager-servers.js:149:25)
at ontimeout (timers.js:498:11)
at Timer.unrefdHandle (timers.js:611:5)
From previous event:
at Reporter.executeScript (C:\jsreportapp\node_modules\jsreport-core\lib\reporter.js:360:47)
at AsyncFunction.reporter.afterRenderListeners.add (C:\jsreportapp\node_modules\jsreport-unoconv\lib\unoconv.js:25:35)
at C:\jsreportapp\node_modules\listener-collection\lib\listenerCollection.js:171:33
at C:\jsreportapp\node_modules\listener-collection\lib\listenerCollection.js:151:16
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)" -
RE: How can I use .pfx certification in https config from godaddy ?
@jan_blaha Thanks for your great help, the SSL works now. I didn't find any pfx config in the document.
-
How can I use .pfx certification in https config from godaddy ?
I have a report server run on a windows server, I would open the https on it. I have a wordwild SSL for my server and I get a *.pfx certification from my IIS. How can I use in report server ? The report server only accept *.cert and *..cert ?
"httpPort": 5489, "certificate": { "key": "certificates/jsreport.net.key", "cert": "certificates/jsreport.net.cert" },