Load the report template in .NET Framework, assign its variables from application code, and continue with rendering.

Supplying values. Load the template, resolve its variables, assign the application values, and render or display the updated report.
var report = new StiReport();
report.Load(@"Reports\Variables.mrt");
report.Compile();

report["Name"] = TextBoxName.Text;
report["Surname"] = TextBoxSurname.Text;
report["Email"] = TextBoxEmail.Text;
report["Sex"] = RadioButtonMale.IsChecked.GetValueOrDefault();

report.ShowWithWpf();
The indexer (report["Name"]) reads and writes report variables by name. Values are assigned after Compile() and before rendering, so the report is generated with exactly the data your application supplies.
In the screenshot below you can see the result of the sample code:

Using Report Variables in 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.