Thursday 18 October 2012

Microsoft ReportViewer - Change Subreport at runtime (rdlc)

Its possible to change a subreport at runtime using the below code. Both reports need to be loaded from a Stream in order for this to work, but is easily achievable by adding a method to the reporting library to handle this. The reporting Assembly contains a 'Common' Class with the following static methods: And to call this code from my web application the following code can be used

No comments:

Post a Comment