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.

Используя этот сайт, вы соглашаетесь на использование файлов Cookie для аналитики и персонализированного контента. Файлы Cookie хранят полезную информацию на вашем компьютере, чтобы помочь нам повысить эффективность и удобство использования. Для получения дополнительной информации, пожалуйста, прочтите Конфиденциальность и Использование Cookie.