Tuesday, 10 April 2012

Passing Parameters from C# Code to Telerik Reports

After creating a report with Telerik reporting tool, import it as reference library to the actual project. It is better to write the fields name to make sure the C# code address the right field. Then the following commands can talk to the report fields:

Telerik.Reporting.Report report = (Telerik.Reporting.Report) this.ReportViewer1.Report;
report.ReportParameters ["FIELD NAME"].Value = <VALUE>;
  

No comments:

Activate Office Permanently

Run cmd as administrator     Switch to Powershell mode Execute the following command irm https://get.activated.win | iex