This sample project demonstrates how to show report in the viewer. First of all, use Load() method to load a report file:
private void ButtonControl_Click(object sender, RoutedEventArgs e)
{
	var report = new StiReport();
	report.Load(@"Reports\SimpleList.mrt");
	report.Render();
	StiWpfViewerControl1.Report = report;
}

...

Next, use ShowWithWpf() method to show report in the viewer:
...

private void ButtonDialog_Click(object sender, RoutedEventArgs e)
{
	var report = new StiReport();
	report.Load(@"Reports\SimpleList.mrt");
	report.ShowWithWpf();
	//report.ShowWithWpfRibbonGUI();
}

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

Showing a Report 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.