<?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[html-xlsx column width issue]]></title><description><![CDATA[<p>Hello, can u help me please with setting up column width in html-xlsx temlpate, idk why, but column 1-3 get width from column 6-8, but only in case when width of 6-8 bigger than 1-3, in another case - all work fine<br />
also, attaching playground example - <a href="https://playground.jsreport.net/w/aleksej.baula/rTeM0vSF" rel="nofollow">https://playground.jsreport.net/w/aleksej.baula/rTeM0vSF</a><br />
UPD: i`m trying many cases, with &quot;width: Npx&quot;, &quot;max-width: Npx&quot;, &quot;min-width: Npx&quot;, only &quot;max-width: Npx; min-width: Npx&quot; work somehow<br />
UPD2: and maybe you also can help with overflow, last row always hidden</p>
]]></description><link>https://forum.jsreport.net/topic/2797/html-xlsx-column-width-issue</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 19:26:03 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/2797.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 18 May 2023 16:13:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to html-xlsx column width issue on Thu, 18 May 2023 16:22:32 GMT]]></title><description><![CDATA[<p>Hello, can u help me please with setting up column width in html-xlsx temlpate, idk why, but column 1-3 get width from column 6-8, but only in case when width of 6-8 bigger than 1-3, in another case - all work fine<br />
also, attaching playground example - <a href="https://playground.jsreport.net/w/aleksej.baula/rTeM0vSF" rel="nofollow">https://playground.jsreport.net/w/aleksej.baula/rTeM0vSF</a><br />
UPD: i`m trying many cases, with &quot;width: Npx&quot;, &quot;max-width: Npx&quot;, &quot;min-width: Npx&quot;, only &quot;max-width: Npx; min-width: Npx&quot; work somehow<br />
UPD2: and maybe you also can help with overflow, last row always hidden</p>
]]></description><link>https://forum.jsreport.net/post/12104</link><guid isPermaLink="true">https://forum.jsreport.net/post/12104</guid><dc:creator><![CDATA[Oleksii Baula]]></dc:creator><pubDate>Thu, 18 May 2023 16:22:32 GMT</pubDate></item><item><title><![CDATA[Reply to html-xlsx column width issue on Invalid Date]]></title><description><![CDATA[<p>You seem to be making nested <code>tr</code>. That is intentional? The result isn't a valid HTML likely.<br />
If I print your template with HTML, it produces the same output so I don't see what you mean with &quot;last row always hidden&quot;.</p>
]]></description><link>https://forum.jsreport.net/post/12109</link><guid isPermaLink="true">https://forum.jsreport.net/post/12109</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to html-xlsx column width issue on Fri, 19 May 2023 09:28:58 GMT]]></title><description><![CDATA[<p>hi, nested <code>tr</code> for get this construction, where i have <code>each</code> cycle inside another <code>each</code> cycle. If there another way to get construction like that, i will glad to see it.<br />
Attaching screenshot with real data, u can see last row a little bit &quot;cut&quot;, like row didn't expand completely.<br />
Btw, it's not a main question!<br />
<img src="/uploads/files/1684488444412-screenshot-2023-05-19-122543.png" alt="0_1684488439030_Screenshot 2023-05-19 122543.png" class="img-responsive img-markdown" /></p>
]]></description><link>https://forum.jsreport.net/post/12110</link><guid isPermaLink="true">https://forum.jsreport.net/post/12110</guid><dc:creator><![CDATA[Oleksii Baula]]></dc:creator><pubDate>Fri, 19 May 2023 09:28:58 GMT</pubDate></item><item><title><![CDATA[Reply to html-xlsx column width issue on Invalid Date]]></title><description><![CDATA[<p>hi <a class="plugin-mentions-a" href="https://forum.jsreport.net/uid/2771">@Oleksii-Baula</a></p>
<p>my recommendation will be that just add a table width, and then set into the cols a value that distributes the available width, the exact distribution will depend on your needs, however i have prepared example using values that i think you were trying to replicate.</p>
<blockquote>
<p>nested tr for get this construction, where i have each cycle inside another each cycle. If there another way to get construction like that, i will glad to see it.</p>
</blockquote>
<p>in the example i have prepated you can see a different way without nesting, also another recommendation will be that you don't set overflow: scroll for all the cells, and instead only do it for cells that its content is expected to be large, so don't do it for the header cells.</p>
<p><a href="https://playground.jsreport.net/w/anon/BG1GgqNg" rel="nofollow">https://playground.jsreport.net/w/anon/BG1GgqNg</a></p>
]]></description><link>https://forum.jsreport.net/post/12132</link><guid isPermaLink="true">https://forum.jsreport.net/post/12132</guid><dc:creator><![CDATA[bjrmatos]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to html-xlsx column width issue on Invalid Date]]></title><description><![CDATA[<p>Hello, <a class="plugin-mentions-a" href="https://forum.jsreport.net/uid/4">@bjrmatos</a><br />
In your example i'm seen the same problem, check screenshot.<br />
column <code>A</code> have width 144px, but 1200 * 4.55% = 54.6. The same problem with column <code>B</code>. From what i have researched, column <code>A</code> have same width as column <code>F</code>, column <code>B</code> like <code>G</code>, but now column <code>C</code> don't looks like <code>H</code>, it's coz width of <code>C</code> defined greater than <code>H</code>.<br />
Overflow for some reason don't work, attaching screenshot too<br />
<img src="/uploads/files/1684933362156-screenshot-2023-05-24-160126-resized.png" alt="1_1684933359318_Screenshot 2023-05-24 160126.png" class="img-responsive img-markdown" /> <img src="/uploads/files/1684933361950-screenshot-2023-05-24-155601-resized.png" alt="0_1684933359316_Screenshot 2023-05-24 155601.png" class="img-responsive img-markdown" /></p>
]]></description><link>https://forum.jsreport.net/post/12137</link><guid isPermaLink="true">https://forum.jsreport.net/post/12137</guid><dc:creator><![CDATA[Oleksii Baula]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to html-xlsx column width issue on Invalid Date]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="https://forum.jsreport.net/uid/2771">@Oleksii-Baula</a> about the column width not being expected, I don't have a good explanation or solution, we use the chrome table layout algorithm so in this case we get the width values from chrome itself.</p>
<p>for the case in which overflow does not work (meaning that it does not make the cell to text wrap) i recommend that you just don't trust what the office preview shows you, i mean that you should download the output and check how it looks when you open the file.</p>
<p>I did a test and when the data in cell has spaces <code>fiveThree fiveThree five...</code> (like it is expected for the text wrap to work) I've observed that it looks different when opening the file locally.</p>
<p><img src="/uploads/files/1685109295956-screenshot-2023-05-26-at-8.36.56-2x-resized.jpeg" alt="0_1685109292106_Screenshot 2023-05-26 at 8.36.56@2x.jpg" class="img-responsive img-markdown" /></p>
<p>however for the case in which the text does not have spaces <code>fiveThreefiveThreefive...</code> the wrap works but it hides part of the text (which is the result you don't want), basically right now in a case in which the text is long and it does not have spaces it won't work as you lile.</p>
]]></description><link>https://forum.jsreport.net/post/12158</link><guid isPermaLink="true">https://forum.jsreport.net/post/12158</guid><dc:creator><![CDATA[bjrmatos]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to html-xlsx column width issue on Invalid Date]]></title><description><![CDATA[<p>Hello this is Gulshan Negi<br />
Well, you can adjust column width by using below code.</p>
<p>&lt;tr&gt;<br />
&lt;td style=&quot;width: 100px;&quot;&gt;Value 1&lt;/td&gt;<br />
&lt;!-- Rest of the columns --&gt;<br />
&lt;/tr&gt;</p>
<p>Thanks</p>
]]></description><link>https://forum.jsreport.net/post/12349</link><guid isPermaLink="true">https://forum.jsreport.net/post/12349</guid><dc:creator><![CDATA[Gaurav Negi]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to html-xlsx column width issue on Invalid Date]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="https://forum.jsreport.net/uid/2864">@Gaurav-Negi</a> your example doesn`t work with 10+ columns, check this topic: <a href="https://forum.jsreport.net/topic/2492/column-width-problem-in-html-to-xlsx-with-playground-example">https://forum.jsreport.net/topic/2492/column-width-problem-in-html-to-xlsx-with-playground-example</a></p>
]]></description><link>https://forum.jsreport.net/post/12391</link><guid isPermaLink="true">https://forum.jsreport.net/post/12391</guid><dc:creator><![CDATA[Exc1usive]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to html-xlsx column width issue on Invalid Date]]></title><description><![CDATA[<p>Ok then. I am also not getting a proper answer may be someone help you on this.<br />
Thanks</p>
]]></description><link>https://forum.jsreport.net/post/12392</link><guid isPermaLink="true">https://forum.jsreport.net/post/12392</guid><dc:creator><![CDATA[Gaurav Negi]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>