No, unfortunately the work around is unstable.
Posts made by michielschram
-
RE: How to: Cariage return in docx?
-
RE: How to: Cariage return in docx?
Drilled it down to the "\n" but wasn't able to fix it. Made a work around by replacing de cariage returns in my pre processing script into <w:br/> and using {{{foo}}}. It works except if you put a formating function around like {{#docxStyle textColor=(getMarkColor text)}}{{{text}}}{{/docxStyle}}.
-
RE: How to: Cariage return in docx?
@jan_blaha Solution worked fine for simple solution but unfortunately not for bigger data files. I get the error when using the ui:
Error: . file is too big and it pass the upload limits of server. Request failed with status code 413
at createError (C:\Data\jsreportapp\node_modules\axios\lib\core\createError.js:16:15)
at settle (C:\Data\jsreportapp\node_modules\axios\lib\core\settle.js:17:12)
at IncomingMessage.handleStreamEnd (C:\Data\jsreportapp\node_modules\axios\lib\adapters\http.js:236:11)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (internal/streams/readable.js:1327:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)When using the api a docx is generated but it's corrupted.
Is there a solution to work around this issue.
-
RE: How to: Cariage return in docx?
Thanx for the quick reply! Works like a charm. In answer to your question in issue 713. In my opinion we should make it work out of the box like the simple HTML. Being able to format text in an easy way is essential to this powerful tool! Thank you for developing.
My data now looks like this:
Template looks like this:
Function looks like this:
-
How to: update table of contents docx
I would like to update the table of contents (TOC) after creating the Word-document.
My Word template and result till now looks like this:
My data and result till now looks like this:
Manually refressing (Ctrl A, F9) after opening the document in Word works but I want to do it automaticaIy. I tried to handle the update from the options menu within Word but didn't succeed. Has anyone figured out how it can be done?
-
How to: Cariage return in docx?
I'm looking for a way to handle new lines in docx. I have tried several things like:
And like:
I tried both {{foo}} and {{{foo}}} but didn't get the expected result. What's the right way to handle new lines? Or isn't it implemented yet?