<?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[Syntax for adding xlsx col properties - escaping double quotes?]]></title><description><![CDATA[<p>Hi,</p>
<p>I am attempting to add a col element to an xlsx sheet to define custom column widths.</p>
<p>This works:</p>
<p><img src="/uploads/files/1677825347765-screen-shot-2023-03-03-at-5.35.27-pm.png" alt="0_1677825346331_Screen Shot 2023-03-03 at 5.35.27 pm.png" class="img-responsive img-markdown" /></p>
<p>The first two columns are wider.</p>
<p>What need to do it add these cols dynamically, from an object in the script colWidths that has two properties, the index and width I want to set the column to.</p>
<p><img src="/uploads/files/1677825540257-screen-shot-2023-03-03-at-5.38.51-pm.png" alt="0_1677825538867_Screen Shot 2023-03-03 at 5.38.51 pm.png" class="img-responsive img-markdown" /></p>
<p>This does not work, and I assume that it has to do with the double quotes, but I can't wrap the {{values}} in double quotes as that does not work in handlebars.</p>
<p>Any ideas?</p>
<p>Regards,</p>
<p>Ari</p>
]]></description><link>https://forum.jsreport.net/topic/2723/syntax-for-adding-xlsx-col-properties-escaping-double-quotes</link><generator>RSS for Node</generator><lastBuildDate>Tue, 11 Aug 2026 11:17:19 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/2723.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 03 Mar 2023 06:40:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Syntax for adding xlsx col properties - escaping double quotes? on Invalid Date]]></title><description><![CDATA[<p>Hi,</p>
<p>I am attempting to add a col element to an xlsx sheet to define custom column widths.</p>
<p>This works:</p>
<p><img src="/uploads/files/1677825347765-screen-shot-2023-03-03-at-5.35.27-pm.png" alt="0_1677825346331_Screen Shot 2023-03-03 at 5.35.27 pm.png" class="img-responsive img-markdown" /></p>
<p>The first two columns are wider.</p>
<p>What need to do it add these cols dynamically, from an object in the script colWidths that has two properties, the index and width I want to set the column to.</p>
<p><img src="/uploads/files/1677825540257-screen-shot-2023-03-03-at-5.38.51-pm.png" alt="0_1677825538867_Screen Shot 2023-03-03 at 5.38.51 pm.png" class="img-responsive img-markdown" /></p>
<p>This does not work, and I assume that it has to do with the double quotes, but I can't wrap the {{values}} in double quotes as that does not work in handlebars.</p>
<p>Any ideas?</p>
<p>Regards,</p>
<p>Ari</p>
]]></description><link>https://forum.jsreport.net/post/11786</link><guid isPermaLink="true">https://forum.jsreport.net/post/11786</guid><dc:creator><![CDATA[AB-D]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Syntax for adding xlsx col properties - escaping double quotes? on Invalid Date]]></title><description><![CDATA[<p>Seems to work fine for me<br />
<a href="https://playground.jsreport.net/w/anon/MhAYQluo" rel="nofollow">https://playground.jsreport.net/w/anon/MhAYQluo</a></p>
<pre><code>{{#xlsxReplace &quot;xl/worksheets/sheet1.xml&quot; &quot;worksheet.cols&quot;}}
    &lt;cols&gt;
        {{#each colWidths}}
            &lt;col min=&quot;{{index}}&quot; max=&quot;{{index}}&quot; width=&quot;{{width}}&quot; customWidth=&quot;1&quot; /&gt;
        {{/each}}
    &lt;/cols&gt;
{{/xlsxReplace}}
</code></pre>
]]></description><link>https://forum.jsreport.net/post/11788</link><guid isPermaLink="true">https://forum.jsreport.net/post/11788</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Syntax for adding xlsx col properties - escaping double quotes? on Invalid Date]]></title><description><![CDATA[<p>So it does, thanks for the confirmation</p>
]]></description><link>https://forum.jsreport.net/post/11804</link><guid isPermaLink="true">https://forum.jsreport.net/post/11804</guid><dc:creator><![CDATA[AB-D]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>