<?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[How preview docx in myself web site?]]></title><description><![CDATA[<p>How preview docx in myself web site which docx generate from jsreport server?<br />
I set it like below, but it always download to my local.</p>
<pre><code> jsreport.renderAsync(printCommand).then(function (res) {
            var placeholder2 = document.getElementById(&quot;reportPlaceholder&quot;);                
            var iframe = &quot;&lt;iframe type='application/vnd.openxmlformats-officedocument.wordprocessingml.document' frameborder='0' src='&quot; + res.toObjectURL() + &quot;' style='width:100%;height:100%;'&gt;&lt;/iframe&gt;&quot;;
            placeholder2.innerHTML = iframe;
            if (successCallback) {
                successCallback(res);
            }
        }, function (error) {
            if (failCallback) failCallback(error);
        });</code></pre>
]]></description><link>https://forum.jsreport.net/topic/1509/how-preview-docx-in-myself-web-site</link><generator>RSS for Node</generator><lastBuildDate>Tue, 15 Sep 2026 16:05:39 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/1509.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 25 Mar 2020 09:30:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How preview docx in myself web site? on Wed, 25 Mar 2020 09:40:22 GMT]]></title><description><![CDATA[<p>How preview docx in myself web site which docx generate from jsreport server?<br />
I set it like below, but it always download to my local.</p>
<pre><code> jsreport.renderAsync(printCommand).then(function (res) {
            var placeholder2 = document.getElementById(&quot;reportPlaceholder&quot;);                
            var iframe = &quot;&lt;iframe type='application/vnd.openxmlformats-officedocument.wordprocessingml.document' frameborder='0' src='&quot; + res.toObjectURL() + &quot;' style='width:100%;height:100%;'&gt;&lt;/iframe&gt;&quot;;
            placeholder2.innerHTML = iframe;
            if (successCallback) {
                successCallback(res);
            }
        }, function (error) {
            if (failCallback) failCallback(error);
        });</code></pre>
]]></description><link>https://forum.jsreport.net/post/6840</link><guid isPermaLink="true">https://forum.jsreport.net/post/6840</guid><dc:creator><![CDATA[Xushlin]]></dc:creator><pubDate>Wed, 25 Mar 2020 09:40:22 GMT</pubDate></item><item><title><![CDATA[Reply to How preview docx in myself web site? on Invalid Date]]></title><description><![CDATA[<p>See the last chapter here<br />
<a href="https://jsreport.net/learn/office-preview" rel="nofollow">https://jsreport.net/learn/office-preview</a></p>
<p>You probably want to render the request like this</p>
<pre><code>{ 
  &quot;template&quot;: {...},
  &quot;data&quot;: {...},
  &quot;options&quot;: { 
    &quot;office&quot;: {
       &quot;preview&quot;: true
    }
  }
</code></pre>
<p>Then the output is html with iframe already locating the office online.</p>
]]></description><link>https://forum.jsreport.net/post/6841</link><guid isPermaLink="true">https://forum.jsreport.net/post/6841</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to How preview docx in myself web site? on Invalid Date]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="https://forum.jsreport.net/uid/2">@jan_blaha</a> , thanks, works for me.</p>
]]></description><link>https://forum.jsreport.net/post/6847</link><guid isPermaLink="true">https://forum.jsreport.net/post/6847</guid><dc:creator><![CDATA[Xushlin]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>