Showing the Dashboard Viewer Immediately after Running an App
Наши примеры проектов и шаблоны отчётов помогут Вам разобраться в основах работы с нашими продуктами.Set up the dashboard viewer in JavaScript, load a template, and connect the component to the application.
Viewer setup. Configure the viewer, load the dashboard, assign it to the component, and process the requests or events raised by the UI.
На скриншоте ниже Вы можете увидеть результат выполнения данного кода:

Viewer setup. Configure the viewer, load the dashboard, assign it to the component, and process the requests or events raised by the UI.
var viewer = new Stimulsoft.Viewer.StiViewer();
var report = Stimulsoft.Report.StiReport.createNewDashboard();
report.loadFile("../dashboard/Christmas.mrt");
viewer.report = report;Creating the viewer with default options and assigning a dashboard shows it immediately — suitable for pages whose main content is a dashboard.На скриншоте ниже Вы можете увидеть результат выполнения данного кода:
