Dieses Beispiel ist veraltet, checken Sie viele anderen aktualisierten Beispiele in dieser Kategorie aus. This example shows how to edit some component properties from code. All components of the report are on pages. The pages are in the report object. In order to get a reference to the component object, you must first get a reference to the page. They can be obtained by its name. For example, change text box value in the report:
private void buttonPreview_Click(object sender, RoutedEventArgs e)
{
	stiReport1.Load("..\\Work with Components.mrt");
	((StiText)stiReport1.Pages["Page1"].Components["Text1"]).Text.Value = textBox1.Text;
	
	stiReport1.ShowWithWpf();
}

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.