<?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[jsreport-browser-client-dist and Angular 4]]></title><description><![CDATA[<p>I am trying to integrate JSReport with my Angular 4 app. I am using <a href="https://jsreport.net/learn/browser-client" rel="nofollow">jsreport-browser-client-dist</a>. I have created a template on JSReportOnline and trying to render the report in the application.</p>
<p>jsreport.serverUrl = '<a href="https://aarfid.jsreportonline.net/api/report" rel="nofollow">https://aarfid.jsreportonline.net/api/report</a>';</p>
<p>At this line I get an error that jsreport is undefined. I have imported the jsreport module as, however i am not sure whether its a correct way or not.</p>
<p>import { jsreport } from 'jsreport-browser-client-dist/jsreport';</p>
]]></description><link>https://forum.jsreport.net/topic/548/jsreport-browser-client-dist-and-angular-4</link><generator>RSS for Node</generator><lastBuildDate>Tue, 19 May 2026 03:32:11 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/548.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 29 May 2018 14:42:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to jsreport-browser-client-dist and Angular 4 on Invalid Date]]></title><description><![CDATA[<p>I am trying to integrate JSReport with my Angular 4 app. I am using <a href="https://jsreport.net/learn/browser-client" rel="nofollow">jsreport-browser-client-dist</a>. I have created a template on JSReportOnline and trying to render the report in the application.</p>
<p>jsreport.serverUrl = '<a href="https://aarfid.jsreportonline.net/api/report" rel="nofollow">https://aarfid.jsreportonline.net/api/report</a>';</p>
<p>At this line I get an error that jsreport is undefined. I have imported the jsreport module as, however i am not sure whether its a correct way or not.</p>
<p>import { jsreport } from 'jsreport-browser-client-dist/jsreport';</p>
]]></description><link>https://forum.jsreport.net/post/2720</link><guid isPermaLink="true">https://forum.jsreport.net/post/2720</guid><dc:creator><![CDATA[vkszn]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to jsreport-browser-client-dist and Angular 4 on Tue, 29 May 2018 14:59:26 GMT]]></title><description><![CDATA[<p>hi! hmm it depends on how your application (or more specifically the bundler in your app) treat modules that are required.</p>
<p>does it work with one of the following?</p>
<ul>
<li>
<p><code>import jsreport from 'jsreport-browser-client-dist/jsreport';</code></p>
</li>
<li>
<p><code>const jsreport = require('jsreport-browser-client-dist/jsreport');</code></p>
</li>
</ul>
<p>in the worst case you should have the jsreport available in <code>window.jsreport</code> if none of the above methods works</p>
]]></description><link>https://forum.jsreport.net/post/2721</link><guid isPermaLink="true">https://forum.jsreport.net/post/2721</guid><dc:creator><![CDATA[bjrmatos]]></dc:creator><pubDate>Tue, 29 May 2018 14:59:26 GMT</pubDate></item><item><title><![CDATA[Reply to jsreport-browser-client-dist and Angular 4 on Invalid Date]]></title><description><![CDATA[<p>Can you point me to a working example. I couldn't get it to work. Still getting<br />
TypeError: Cannot set property 'serverUrl' of undefined</p>
]]></description><link>https://forum.jsreport.net/post/2722</link><guid isPermaLink="true">https://forum.jsreport.net/post/2722</guid><dc:creator><![CDATA[vkszn]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to jsreport-browser-client-dist and Angular 4 on Tue, 29 May 2018 16:14:35 GMT]]></title><description><![CDATA[<p>i don't have a specific example that shows usage of browser-client-dist inside angular but using <code>const jsreport = require('jsreport-browser-client-dist/jsreport');</code> seems to work</p>
<p>live example that at least shows jsreport-browser-client-dist is defined in angular project: <a href="https://codesandbox.io/s/1rr3vkwxvj" rel="nofollow">https://codesandbox.io/s/1rr3vkwxvj</a></p>
<p>did you tried that?</p>
]]></description><link>https://forum.jsreport.net/post/2723</link><guid isPermaLink="true">https://forum.jsreport.net/post/2723</guid><dc:creator><![CDATA[bjrmatos]]></dc:creator><pubDate>Tue, 29 May 2018 16:14:35 GMT</pubDate></item><item><title><![CDATA[Reply to jsreport-browser-client-dist and Angular 4 on Invalid Date]]></title><description><![CDATA[<p>thanks it worked</p>
]]></description><link>https://forum.jsreport.net/post/2724</link><guid isPermaLink="true">https://forum.jsreport.net/post/2724</guid><dc:creator><![CDATA[vkszn]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>