<?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[Unable to render xlsx template in .net c#]]></title><description><![CDATA[<p>I need some help when i try to render an xlsx template using the c# sdk it keeps returning the template instead of the rendered document</p>
]]></description><link>https://forum.jsreport.net/topic/2890/unable-to-render-xlsx-template-in-net-c</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Mar 2026 14:54:33 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/2890.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 10 Aug 2023 21:02:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Unable to render xlsx template in .net c# on Invalid Date]]></title><description><![CDATA[<p>I need some help when i try to render an xlsx template using the c# sdk it keeps returning the template instead of the rendered document</p>
]]></description><link>https://forum.jsreport.net/post/12502</link><guid isPermaLink="true">https://forum.jsreport.net/post/12502</guid><dc:creator><![CDATA[techteamava4u]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Unable to render xlsx template in .net c# on Invalid Date]]></title><description><![CDATA[<p>Please share some code...</p>
]]></description><link>https://forum.jsreport.net/post/12504</link><guid isPermaLink="true">https://forum.jsreport.net/post/12504</guid><dc:creator><![CDATA[admin]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Unable to render xlsx template in .net c# on Fri, 11 Aug 2023 12:53:31 GMT]]></title><description><![CDATA[<p>So i created a helper method to handle the template and make the request</p>
<pre><code class="language-csharp">public async Task&lt;byte[]&gt; RenderExcelAsync(string exceltemplate, object exceldata, string excelhelperFunctions = null)
        {
            try
            {
                Template excelt = new Template()
                {
                    Engine = Engine.Handlebars,
                    Recipe = Recipe.Xlsx,
                    Content = &quot;{{{xlsxPrint}}}&quot;,
                    Xlsx = new Xlsx()
                    {
                        TemplateAsset = new Asset() { Encoding = &quot;base64&quot;, Content = exceltemplate }
                    }
                };

                if (!string.IsNullOrEmpty(excelhelperFunctions))
                    excelt.Helpers = excelhelperFunctions;

                RenderRequest req = new RenderRequest()
                {
                    Template = excelt,
                    Data = exceldata
                };
                var result = await _service.RenderAsync(req);

                if (result.Content != null)
                {
                    using (var memoryStream = new MemoryStream())
                    {
                        result.Content.CopyTo(memoryStream);
                        return memoryStream.ToArray();
                    }
                }
                else
                    throw new ApplicationException(&quot;There was an error generating the PDF file.&quot;);
            }
            catch (Exception)
            {
                throw;
            }
        }
    }
</code></pre>
<p>it runs but instead of  returning the rendered document it returns the template basically</p>
]]></description><link>https://forum.jsreport.net/post/12507</link><guid isPermaLink="true">https://forum.jsreport.net/post/12507</guid><dc:creator><![CDATA[techteamava4u]]></dc:creator><pubDate>Fri, 11 Aug 2023 12:53:31 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to render xlsx template in .net c# on Invalid Date]]></title><description><![CDATA[<p>Also tried running it using the jsreport studio and it worked but not from the hosted version of the jsreport i have could it be a version issue? version on the site is version: 2.11.0</p>
]]></description><link>https://forum.jsreport.net/post/12508</link><guid isPermaLink="true">https://forum.jsreport.net/post/12508</guid><dc:creator><![CDATA[techteamava4u]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Unable to render xlsx template in .net c# on Invalid Date]]></title><description><![CDATA[<p>Thanks... this looks good so far.</p>
<blockquote>
<p>it keeps returning the template instead of the rendered document</p>
</blockquote>
<p>Do you mean it returns xlsx file, but the original <code>exceltemplate</code> template without changed cells?<br />
This would be expected, because you provide no calls here <code>Content = &quot;{{{xlsxPrint}}}&quot;,</code></p>
]]></description><link>https://forum.jsreport.net/post/12509</link><guid isPermaLink="true">https://forum.jsreport.net/post/12509</guid><dc:creator><![CDATA[admin]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>