Printing a Report from Code
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 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:

Necessary cookies keep the website working. With your consent, we also use analytics cookies to improve it and advertising cookies to show relevant ads. You can change this at any time via Cookie settings at the bottom of the page. More in our Privacy Policy and Cookie Policy.
Details
-
Sign-in, your name in the menu, shopping cart, currency and your cookie choice
sti_CartProducts, sti_Consent, sti_Currency, sti_Localization, sti_RememberMe, sti_SessionKey, sti_UserKey, sti_WorkspaceKeyUp to 12 months -
Google reCAPTCHA: bot protection for sign-up, password reset and forms
_GRECAPTCHA, rc::*Up to 6 months -
Regional prices and content: geojs.io determines your country by the IP address
stimulsoft.clientIP, stimulsoft.countryCode, stimulsoft.countryNameUntil the browser is closed -
Zendesk support chat, loaded only when you open it
ZD-*No expiry -
YouTube videos, loaded only when you start one
yt-player-*, ytidb::*, YtIdbMetaNo expiry
Details
-
Google Analytics
_ga, _ga_56Z9RJS5ELUp to 2 years
Details
-
Google Ads
_gcl_au, _gcl_lsUp to 90 days -
AdRoll (NextRoll) and its advertising partners
__adroll, __adroll_fpc, __adroll_shared, __ar_v4Up to 13 months
Website operator: CloudReports sp. z o.o. (dba Stimulsoft). Questions: info@stimulsoft.com.