report data does not show after render

Stimulsoft Reports.JS discussion
Post Reply
moya
Posts: 1
Joined: Sun Mar 18, 2018 9:45 am

report data does not show after render

Post by moya »

hello everybody,
i have created a report with one postgres data source and i have set it's connection string, then inside data source i wrote a query that is retriving data from database and with preview button all data are being showed correctly, my problem is appeared when i'm going to show the report from node.js code :
var report = new Stimulsoft.Report.StiReport();
report.loadFile("users2.mrt");
report.render();
var htmlString = report.exportDocument(Stimulsoft.Report.StiExportFormat.Html);
fs.writeFileSync('./SimpleList.html', htmlString);

after running above code in my node.js application, the created file : 'SimpleList.html" is not showing any data and i also run profiler and i understood that no command is not being send to database from report.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: report data does not show after render

Post by Alex K. »

Hello,

Please check that you add data adapters:
https://www.stimulsoft.com/en/documenta ... tabase.htm

Also, you can find samples:
https://github.com/stimulsoft/Samples-J ... p%20Server

Thank you.
Post Reply