### Install Stimulsoft Reports.JS Source: https://github.com/stimulsoft/reports.js/blob/master/README.md Install the Reports.JS module using npm. This command should be run in your project folder. ```bash npm install stimulsoft-reports-js ``` -------------------------------- ### Load and Save Report with Stimulsoft Reports.JS Source: https://github.com/stimulsoft/reports.js/blob/master/README.md Example of loading a report template, rendering it, exporting to PDF, and saving the report and document files. Ensure you have the 'Roboto-Black.ttf' font file available for loading. ```javascript // Stimulsoft reports module loading var Stimulsoft = require('stimulsoft-reports-js'); // Loading fonts Stimulsoft.Base.StiFontCollection.addOpentypeFontFile("Roboto-Black.ttf"); // Creating a new report object var report = Stimulsoft.Report.StiReport.createNewReport(); // Loading a report template (MRT) into the report object report.loadFile("report1.mrt"); // Renreding the report report.renderAsync(() => { }); // Exporting the report to PDF report.exportDocumentAsync((pdfData) => { }); // Saving the report object into a template file (MRT) report.saveFile("report2.mrt"); // Saving the rendered report object into a document file (MDC) report.saveDocumentFile("report3.mdc"); ``` -------------------------------- ### Run Stimulsoft Reports.JS Application Source: https://github.com/stimulsoft/reports.js/blob/master/README.md Execute the index.js file using Node.js from your console. ```bash node index ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.