Assigning a Dashboard to the Viewer
Our sample projects and report templates can help you learn the basics of working with our products.This example shows how to assign the dashboard to the viewer:
In the screenshot below you can see the result of the sample code:

<script type="text/javascript">
// Create the dashboard viewer with default options
var viewer = new Stimulsoft.Viewer.StiViewer(null, "StiViewer", false);
// Create a new dashboard instance
var report = Stimulsoft.Report.StiReport.createNewDashboard();
// Load dashboard from url
report.loadFile("../dashboard/DashboardChristmas.mrt");
// Assign dashboard to the viewer, the dashboard will be built automatically after rendering the viewer
viewer.report = report;
</script>In the screenshot below you can see the result of the sample code:
