<?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[Display &quot;html-to-xlsx&quot; report in react app.]]></title><description><![CDATA[<p>I am trying to render my report in my react app this is my component</p>
<pre><code>import jsreport from &quot;jsreport-browser-client-dist&quot;;

componentDidMount() {
    jsreport.serverUrl = &quot;http://localhost:5488&quot;;
    let reportRequest = {
      template: {
        shortid: &quot;rkJTnK2ce&quot;,
        recipe: &quot;html&quot;
      },
      data: {
        lines: [
          {
            &quot;Employee Id&quot;: 1,
            &quot;First Name&quot;: &quot;Eric&quot;,
            &quot;Last Name&quot;: &quot;Lastname&quot;,
            &quot;Record Category&quot;: &quot;Earning&quot;,
            &quot;Record Amount&quot;: &quot;$100.00&quot;,
            &quot;Record Hours&quot;: &quot;10&quot;
          },
         {
            &quot;Employee Id&quot;: 2,
            &quot;First Name&quot;: &quot;Jack&quot;,
            &quot;Last Name&quot;: &quot;Lastname&quot;,
            &quot;Record Category&quot;: &quot;Earning&quot;,
            &quot;Record Amount&quot;: &quot;$100.00&quot;,
            &quot;Record Hours&quot;: &quot;12&quot;
          }
        ]
      }
    };
    jsreport.render(this.reportPreview, reportRequest);
}  
</code></pre>
<p>--</p>
<pre><code>render() {
    return (
        &lt;div
            style={{ height: &quot;700px&quot; }}
            ref={el =&gt; (this.reportPreview = el)}
       &gt;&lt;/div&gt;
   )
}
</code></pre>
<p>This works well the data gets displayed in the page, however if I change <code>recipe: &quot;html&quot;</code> to <code>recipe: &quot;html-to-xlsx&quot;</code> it doesn't display the report in the page but it downloads it, is there a way to display the xlsx report in the page?</p>
]]></description><link>https://forum.jsreport.net/topic/1395/display-html-to-xlsx-report-in-react-app</link><generator>RSS for Node</generator><lastBuildDate>Wed, 12 Aug 2026 03:16:39 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/1395.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 17 Dec 2019 20:34:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Display &quot;html-to-xlsx&quot; report in react app. on Invalid Date]]></title><description><![CDATA[<p>I am trying to render my report in my react app this is my component</p>
<pre><code>import jsreport from &quot;jsreport-browser-client-dist&quot;;

componentDidMount() {
    jsreport.serverUrl = &quot;http://localhost:5488&quot;;
    let reportRequest = {
      template: {
        shortid: &quot;rkJTnK2ce&quot;,
        recipe: &quot;html&quot;
      },
      data: {
        lines: [
          {
            &quot;Employee Id&quot;: 1,
            &quot;First Name&quot;: &quot;Eric&quot;,
            &quot;Last Name&quot;: &quot;Lastname&quot;,
            &quot;Record Category&quot;: &quot;Earning&quot;,
            &quot;Record Amount&quot;: &quot;$100.00&quot;,
            &quot;Record Hours&quot;: &quot;10&quot;
          },
         {
            &quot;Employee Id&quot;: 2,
            &quot;First Name&quot;: &quot;Jack&quot;,
            &quot;Last Name&quot;: &quot;Lastname&quot;,
            &quot;Record Category&quot;: &quot;Earning&quot;,
            &quot;Record Amount&quot;: &quot;$100.00&quot;,
            &quot;Record Hours&quot;: &quot;12&quot;
          }
        ]
      }
    };
    jsreport.render(this.reportPreview, reportRequest);
}  
</code></pre>
<p>--</p>
<pre><code>render() {
    return (
        &lt;div
            style={{ height: &quot;700px&quot; }}
            ref={el =&gt; (this.reportPreview = el)}
       &gt;&lt;/div&gt;
   )
}
</code></pre>
<p>This works well the data gets displayed in the page, however if I change <code>recipe: &quot;html&quot;</code> to <code>recipe: &quot;html-to-xlsx&quot;</code> it doesn't display the report in the page but it downloads it, is there a way to display the xlsx report in the page?</p>
]]></description><link>https://forum.jsreport.net/post/6418</link><guid isPermaLink="true">https://forum.jsreport.net/post/6418</guid><dc:creator><![CDATA[shmili]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Display &quot;html-to-xlsx&quot; report in react app. on Wed, 18 Dec 2019 12:27:54 GMT]]></title><description><![CDATA[<p>You can send preview:true.</p>
<pre><code>let reportRequest = {
      template: {
        shortid: &quot;rkJTnK2ce&quot;,
        recipe: &quot;html&quot;
      },
     data: ....,
     options: { preview: true }
}
</code></pre>
]]></description><link>https://forum.jsreport.net/post/6422</link><guid isPermaLink="true">https://forum.jsreport.net/post/6422</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Wed, 18 Dec 2019 12:27:54 GMT</pubDate></item><item><title><![CDATA[Reply to Display &quot;html-to-xlsx&quot; report in react app. on Invalid Date]]></title><description><![CDATA[<p>That solved my problem.</p>
<p>Thanks for your quick response.</p>
]]></description><link>https://forum.jsreport.net/post/6424</link><guid isPermaLink="true">https://forum.jsreport.net/post/6424</guid><dc:creator><![CDATA[shmili]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>