We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to edit a report at runtime

Platform: WPF |
Control: ReportWriter |
Published Date: August 31, 2016 |
Last Revised Date: September 2, 2016

A report (RDL/RDLC) can be edited or modified at runtime using ReportDefinition class. The following describes the steps to edit a report at runtime and render the output.

  1. To edit existing report, it need to be de serialized to Report Definition object using XmlSerializer.

C#

  1. The serialized report definition object contains all the properties available in report file. The properties of each XML element can accessed and updated to required values. In the below code, value of a text box report item in page header is updated with new value.

C#

  1. The below code used to edit Tablix report item and its inner cell element value in report.

C#

  1. The modified report definition can be converted as stream or saved into a local file using the XmlSerializer’s Deserialize method.

C#

 

Samples

WPF

JavaScript

 

ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon