<?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[Xlsx receipe each]]></title><description><![CDATA[<p>I am new to jsreport. What I am trying to do is to create excel report with json data and align 2 tables side by side in the excel sheet. I am getting over and over the same error:</p>
<p>Error while executing xlsx recipe<br />
(because) cannot read properties of null (reading 'parentNode')<br />
TypeError: Cannot read properties of null (reading 'parentNode')</p>
<p>I use xlsx invoice example from the playground.</p>
]]></description><link>https://forum.jsreport.net/topic/3382/xlsx-receipe-each</link><generator>RSS for Node</generator><lastBuildDate>Mon, 18 May 2026 22:20:48 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/3382.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 28 Dec 2024 23:34:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Xlsx receipe each on Invalid Date]]></title><description><![CDATA[<p>I am new to jsreport. What I am trying to do is to create excel report with json data and align 2 tables side by side in the excel sheet. I am getting over and over the same error:</p>
<p>Error while executing xlsx recipe<br />
(because) cannot read properties of null (reading 'parentNode')<br />
TypeError: Cannot read properties of null (reading 'parentNode')</p>
<p>I use xlsx invoice example from the playground.</p>
]]></description><link>https://forum.jsreport.net/post/14315</link><guid isPermaLink="true">https://forum.jsreport.net/post/14315</guid><dc:creator><![CDATA[synsoft]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Xlsx receipe each on Invalid Date]]></title><description><![CDATA[<p>Please share the minimal playground demo replicating the problem so we can take a look.<br />
<a href="https://playground.jsreport.net/" rel="nofollow">https://playground.jsreport.net/</a></p>
]]></description><link>https://forum.jsreport.net/post/14316</link><guid isPermaLink="true">https://forum.jsreport.net/post/14316</guid><dc:creator><![CDATA[admin]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Xlsx receipe each on Invalid Date]]></title><description><![CDATA[<p>Here it is:</p>
<p><a href="https://playground.jsreport.net/w/anon/xQQ0BacU" rel="nofollow">https://playground.jsreport.net/w/anon/xQQ0BacU</a></p>
]]></description><link>https://forum.jsreport.net/post/14317</link><guid isPermaLink="true">https://forum.jsreport.net/post/14317</guid><dc:creator><![CDATA[synsoft]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Xlsx receipe each on Invalid Date]]></title><description><![CDATA[<p>Any thoughts?</p>
]]></description><link>https://forum.jsreport.net/post/14318</link><guid isPermaLink="true">https://forum.jsreport.net/post/14318</guid><dc:creator><![CDATA[synsoft]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Xlsx receipe each on Invalid Date]]></title><description><![CDATA[<p>It is Christmas vacation time, so getting the right people online will take some time. :)</p>
<p>At first glance, there seems to be a problem with multiple <code>each</code> in one row. Maybe you can just use one <code>each</code> and use a helper call to merge those two arrays into one. Like here<br />
<a href="https://playground.jsreport.net/w/anon/5r07l9Fq" rel="nofollow">https://playground.jsreport.net/w/anon/5r07l9Fq</a></p>
]]></description><link>https://forum.jsreport.net/post/14319</link><guid isPermaLink="true">https://forum.jsreport.net/post/14319</guid><dc:creator><![CDATA[admin]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Xlsx receipe each on Invalid Date]]></title><description><![CDATA[<p>This partially solves my problem but I have 2 more issues:<br />
Firstly, what to do if I have two tables with an arbitrary number of rows which is needed to be displayed next to each other (unknown number of such rows)?<br />
Example: Table 1 has 8 rows; Table 2 has 10 rows.</p>
<p>Secondly, is it possible to display header from one table and data from another table in the same row if we are using &quot;each&quot; in the template?<br />
Example: Table 1 starts from row number 1 and table 2 starts from row number 2.</p>
<p>Thanks.</p>
]]></description><link>https://forum.jsreport.net/post/14320</link><guid isPermaLink="true">https://forum.jsreport.net/post/14320</guid><dc:creator><![CDATA[synsoft]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Xlsx receipe each on Invalid Date]]></title><description><![CDATA[<p>Hmm, it should still work in my example...<br />
A different number of items in both arrays works there.<br />
If you want a header for one and not for the other, you can just prepend the header and heave <code>#each</code> on the second row.<br />
If you need to have it dynamic, you will have <code>#if</code> for first item which will display header.</p>
]]></description><link>https://forum.jsreport.net/post/14321</link><guid isPermaLink="true">https://forum.jsreport.net/post/14321</guid><dc:creator><![CDATA[admin]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Xlsx receipe each on Invalid Date]]></title><description><![CDATA[<p>Could you please extend the example on the playground, because we are not able to produce what you wrote?</p>
]]></description><link>https://forum.jsreport.net/post/14322</link><guid isPermaLink="true">https://forum.jsreport.net/post/14322</guid><dc:creator><![CDATA[synsoft]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Xlsx receipe each on Invalid Date]]></title><description><![CDATA[<p>I tried many different scenarios but the second table always starts from the last row of the first table. I want to start from the third row (as defined in the excel template). Can you please help?</p>
<p><a href="https://playground.jsreport.net/w/anon/Y6esxzYm" rel="nofollow">https://playground.jsreport.net/w/anon/Y6esxzYm</a></p>
]]></description><link>https://forum.jsreport.net/post/14323</link><guid isPermaLink="true">https://forum.jsreport.net/post/14323</guid><dc:creator><![CDATA[synsoft]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Xlsx receipe each on Invalid Date]]></title><description><![CDATA[<p>Yes, I see.</p>
<blockquote>
<p>tried many different scenarios but the second table always starts from the last row of the first table.</p>
</blockquote>
<p>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.<br />
<a href="https://github.com/jsreport/jsreport/issues/1198" rel="nofollow">https://github.com/jsreport/jsreport/issues/1198</a></p>
<p>At this moment, one solution is to define cells contents including headers in the helper, and use a single <code>each</code>. To keep formatting, you will need to postprocess the xlsx using xlsx transformation helpers<br />
<a href="https://jsreport.net/learn/xlsx#transformation" rel="nofollow">https://jsreport.net/learn/xlsx#transformation</a></p>
<p>Demo<br />
<a href="https://playground.jsreport.net/w/anon/t9UNZpS4" rel="nofollow">https://playground.jsreport.net/w/anon/t9UNZpS4</a></p>
<p>The other option is to use just xlsx transformation helpers from the beginning as this gives you the most flexibility.</p>
]]></description><link>https://forum.jsreport.net/post/14325</link><guid isPermaLink="true">https://forum.jsreport.net/post/14325</guid><dc:creator><![CDATA[admin]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>