Printing a Report from Code
Our sample projects and report templates can help you learn the basics of working with our products.This sample project demonstrates how to print reports. First, load the report you want to print:
Then, use
In the screenshot below you can see the result of the sample code:

private void ButtonExport_Click(object sender, RoutedEventArgs e)
{
var report = new StiReport();
report.Load(@"Reports\TwoSimpleLists.mrt");
...
Then, use
PrintWithWPF method to print the report:
...
report.PrintWithWpf();
MessageBox.Show("The print action is complete.", "Print Report");
}In the screenshot below you can see the result of the sample code:
