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:

SQL: Generate a range of numbers

SELECT ones.n + 10*tens.n + 100*hundreds.n + 1000*thousands.n FROM       (VALUES(0),(1),(2),(3),(4),(5),(6),(7),(8),(9)) ones(n),      (VALU...