Showing the Dashboard Viewer Immediately after Running an App
Our sample projects and report templates can help you learn the basics of working with our products.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.