Showing a Dashboard in the Viewer
Our sample projects and report templates can help you learn the basics of working with our products.A dashboard is a report created with
Load and show the dashboard.
How it works. Dashboards reuse the report engine, so the same load-and-show flow applies — the template just contains dashboard elements instead of bands.
CreateNewDashboard(); once loaded it opens in the WinForms viewer just like a report.Load and show the dashboard.
var report = StiReport.CreateNewDashboard();
report.Load("Dashboards\\DashboardChristmas.mrt");
report.Show();StiReport.CreateNewDashboard()— creates a dashboard-type report.Show()opens the standalone viewer; to embed it, add aStiViewerControl { Report = report }to a panel.
How it works. Dashboards reuse the report engine, so the same load-and-show flow applies — the template just contains dashboard elements instead of bands.