This example shows how to show a dashboard in the viewer. First, you need to load dashboard template:
...

	private StiReport GetTemplate()
	{
		var report = StiReport.CreateNewDashboard();
		report.Load("Dashboards\\DashboardChristmas.mrt");
		return report;
	}

...

Next, use Show() method to show the dashboard:
...

	private void buttonDialog_Click(object sender, EventArgs e)
	{
		var report = GetTemplate();
		report.Show();
	}

...

Also, you can use StiDashboardViewerControl() method to show the dashboard in the necessary place:
...

	private void buttonPanel_Click(object sender, EventArgs e)
	{	
		if (panelViewer.Controls.Count == 0)
		{
			ViewerControl = new StiDashboardViewerControl();
			ViewerControl.Dock = DockStyle.Fill;

			panelViewer.Controls.Add(ViewerControl);
		}

		ViewerControl.Report = GetTemplate();
	}

...

In the screenshot below you can see the result of the sample code:

Showing a Dashboard in the Viewer

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.