<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Word (docx) template based reports]]></title><description><![CDATA[<p>Hello,<br />
I have created all reports in the past as HTML, but one customer would like to use Word to design the reporting templates. I was initially quite skeptical, but I see more and more the reason why this could make sense from a business point of view.</p>
<p>So I'm thinking about using a library such as docxtemplated to dynamically replace tags and generate a docx document (see <a href="https://docxtemplater.readthedocs.io/en/latest/index.html" rel="nofollow">https://docxtemplater.readthedocs.io/en/latest/index.html</a>), which could be optionally converted to PDF using Libre or Open Office.</p>
<p>Since I like jsreport, I'm wondering if anybody has done something similar and/or whether it would be possible to implement a custom receipe for this.</p>
]]></description><link>https://forum.jsreport.net/topic/766/word-docx-template-based-reports</link><generator>RSS for Node</generator><lastBuildDate>Tue, 11 Aug 2026 11:40:48 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/766.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 06 Oct 2018 18:08:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Word (docx) template based reports on Invalid Date]]></title><description><![CDATA[<p>Hello,<br />
I have created all reports in the past as HTML, but one customer would like to use Word to design the reporting templates. I was initially quite skeptical, but I see more and more the reason why this could make sense from a business point of view.</p>
<p>So I'm thinking about using a library such as docxtemplated to dynamically replace tags and generate a docx document (see <a href="https://docxtemplater.readthedocs.io/en/latest/index.html" rel="nofollow">https://docxtemplater.readthedocs.io/en/latest/index.html</a>), which could be optionally converted to PDF using Libre or Open Office.</p>
<p>Since I like jsreport, I'm wondering if anybody has done something similar and/or whether it would be possible to implement a custom receipe for this.</p>
]]></description><link>https://forum.jsreport.net/post/3764</link><guid isPermaLink="true">https://forum.jsreport.net/post/3764</guid><dc:creator><![CDATA[fabiolambreschi]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Word (docx) template based reports on Invalid Date]]></title><description><![CDATA[<p>Hi,</p>
<p>just adding the link to one existing recipe for generating docs.<br />
It was created by the one of contributors from the community.<br />
It can work nicely in some limited scenarios.<br />
<a href="https://github.com/jsreport/jsreport-html-embedded-in-docx" rel="nofollow">https://github.com/jsreport/jsreport-html-embedded-in-docx</a></p>
<p>If it doesn't work for you, feel free to ping me directly when having some questions regarding creating custom recipes.</p>
]]></description><link>https://forum.jsreport.net/post/3770</link><guid isPermaLink="true">https://forum.jsreport.net/post/3770</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Word (docx) template based reports on Invalid Date]]></title><description><![CDATA[<p>Hi Jan,<br />
Thanks a lot for your response. We will start implementing a custom recipe for docxtemplater in the next few days and will contribute it back to the community. Will ping you directly in case we will face some issues.</p>
]]></description><link>https://forum.jsreport.net/post/3774</link><guid isPermaLink="true">https://forum.jsreport.net/post/3774</guid><dc:creator><![CDATA[fabiolambreschi]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Word (docx) template based reports on Invalid Date]]></title><description><![CDATA[<p>Hi Jan,<br />
We have started today thinking about how to integrate docxtemplate with jsreport and I'm not sure whether this is actually possible without major modifications. The idea is to upload a docx template to jsreports (which is in itself a zip file). So the first attempt to implement a custom engine failed, because we need to read the template in binary mode in order to be able to unzip it. Any suggestion how this can be done?</p>
]]></description><link>https://forum.jsreport.net/post/3993</link><guid isPermaLink="true">https://forum.jsreport.net/post/3993</guid><dc:creator><![CDATA[fabiolambreschi]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Word (docx) template based reports on Invalid Date]]></title><description><![CDATA[<p>Could you try to describe more in details how would you like this to work?</p>
<p>I would guess that it will (from one part) work the same way as the <code>xlsx</code> recipe.<br />
There will be a new entity &quot;docx template&quot; which will represent the binary docx file uploaded by user.<br />
This entity will be associated with the normal template. Just like the xlsx template.<br />
The new recipe will somehow run a tool of your choice and fill the associated template.<br />
So I believe very similar what <code>xlsx</code> recipe does.<br />
The difference would be that there will be a tool used to fill the docx.<br />
Where in <code>xlsx</code> we unzip the xlsx, fill it using templating engines and zip it back.</p>
<p>Here you can find xlsx sources<br />
<a href="https://github.com/jsreport/jsreport-xlsx" rel="nofollow">https://github.com/jsreport/jsreport-xlsx</a></p>
]]></description><link>https://forum.jsreport.net/post/3994</link><guid isPermaLink="true">https://forum.jsreport.net/post/3994</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Word (docx) template based reports on Invalid Date]]></title><description><![CDATA[<p>Thank you very much for your response. I just looked at the source code of xlsx and the approach is indeed very similar, but there are a few differences. Docxtemplater has tags inside the word template and is in this sense an engine and not a recipe. We envision the process as follows:</p>
<ol>
<li>User prepares a word template with custom placeholders/tags as described here: <a href="https://docxtemplater.readthedocs.io/en/latest/tag_types.html" rel="nofollow">https://docxtemplater.readthedocs.io/en/latest/tag_types.html</a></li>
<li>He uploads the word template to jsreport</li>
<li>A custom engine renders a new docx file</li>
<li>This file will be passed optionally to a custom recipe to convert it to PDF</li>
</ol>
<p>We probably need to implement a custom engine (docx) as well as a custom recipe (docx-to-pdf). Any view on this?</p>
]]></description><link>https://forum.jsreport.net/post/3997</link><guid isPermaLink="true">https://forum.jsreport.net/post/3997</guid><dc:creator><![CDATA[fabiolambreschi]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Word (docx) template based reports on Invalid Date]]></title><description><![CDATA[<p>FYI we had some conversation also over email<br />
I am now working on implementing this.<br />
I come back to you soon.</p>
]]></description><link>https://forum.jsreport.net/post/4011</link><guid isPermaLink="true">https://forum.jsreport.net/post/4011</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Word (docx) template based reports on Invalid Date]]></title><description><![CDATA[<p>I released required extensions. Please check the documentation and let me know if it is suitable for you.</p>
<p><a href="https://jsreport.net/learn/docxtemplater" rel="nofollow">https://jsreport.net/learn/docxtemplater</a><br />
<a href="https://jsreport.net/learn/unoconv" rel="nofollow">https://jsreport.net/learn/unoconv</a></p>
]]></description><link>https://forum.jsreport.net/post/4018</link><guid isPermaLink="true">https://forum.jsreport.net/post/4018</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>