Showing a Report in the Viewer
Our sample projects and report templates can help you learn the basics of working with our products.This example is outdated, you can check out the many other new examples in this category.This sample project demonstrates how to show report in the viewer. First of all, use
Next, use
In the screenshot below you can see the result of the sample code:

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:
