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");
}

Auf dem Screenshot unten Sie können das Ergebnis des Beispiel-Codes ansehen:

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.