Render the report in Node.js and export it directly from code, without opening the viewer.

Exporting the document. Load and render the report, configure the requested export format, and deliver the generated bytes as a file, stream, or web response.
var Stimulsoft = require('stimulsoft-reports-js');

var report = new Stimulsoft.Report.StiReport();
report.loadFile("SimpleList.mrt");

report.renderAsync(() => {
    var htmlString = report.exportDocument(Stimulsoft.Report.StiExportFormat.Html);
    fs.writeFileSync('./SimpleList.html', htmlString);
});
For HTML the synchronous exportDocument returns the markup as a string, which is written to a file with fs.writeFileSync. Passing a different StiExportFormat value exports to PDF, Excel, Word and other formats the same way.

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.