This sample project demonstrates how to print reports. First, load the report you want to print:
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:

Printing a Report from Code

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.