Page 1 of 1

report data does not show after render

Posted: Sun Mar 18, 2018 10:07 am
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.

Re: report data does not show after render

Posted: Tue Mar 20, 2018 6:26 am
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.