Loading a Dashboard and Saving a Dashboard
Наши примеры проектов и шаблоны отчётов помогут Вам разобраться в основах работы с нашими продуктами.On Node.js a dashboard template can be loaded and saved back to a file — the basis for server-side template processing.
Load, then save.
How it works. The template round-trips through the filesystem, so dashboards can be read, modified and re-saved entirely on the server.
На скриншоте ниже Вы можете увидеть результат выполнения данного кода:

Load, then save.
var Stimulsoft = require('stimulsoft-dashboards-js');
var report = Stimulsoft.Report.StiReport.createNewDashboard();
report.loadFile("Dashboard.mrt");
report.saveFile("Dashboard2.mrt");report.loadFile(path)— open a dashboard template from disk.report.saveFile(path)— write it back out, e.g. after programmatic changes.
How it works. The template round-trips through the filesystem, so dashboards can be read, modified and re-saved entirely on the server.
На скриншоте ниже Вы можете увидеть результат выполнения данного кода:
