Using a Report Cache Mode
Our sample projects and report templates can help you learn the basics of working with our products.This example illustrates how you can enable and configure cache settings to resolve lack of memory issues.
Installation and running
Use npm to install requred modules:
Step by step
Stimulsoft Reports.JS module loading:
Installation and running
Use npm to install requred modules:
$ npm install
Run Sample:
$ npm start
Step by step
Stimulsoft Reports.JS module loading:
var Stimulsoft = require('stimulsoft-reports-js');
Creating new report:
var report = new Stimulsoft.Report.StiReport();
Loading sample report template:
report.loadFile("Over-2.000-pages.mrt");
Enable caching:
report.reportCacheMode = Stimulsoft.Report.StiReportCacheMode.On;
Renreding report and saving rendered report to mdc-file:
report.renderAsync(function () {
// Saving rendered report to file
report.saveDocumentFile("Over-2.000-pages.mdc");
// To clear the report cache; otherwise, the cache will not be cleared
report.dispose();
});
Dispose report for clear cache:
report.dispose();