This is a migrated thread and some comments may be shown as answers.

Web Parameters -> Report Parameters

1 Answer 91 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kwon OhJong
Top achievements
Rank 2
Kwon OhJong asked on 04 Nov 2009, 05:19 AM
Hi

string id = Request.QueryString["id"];
 Value Get

Telerik Report Parameters
 Value Set

Example
Q2 2009
using Telerik.Reporting;

string reportName = Server.UrlDecode(this.Request.QueryString["ReportName"]);
string id = Request.QueryString["id"];

if (!string.IsNullOrEmpty(reportName))
{
    Type reportType = Type.GetType(reportName);
    IReportDocument report = (IReportDocument)Activator.CreateInstance(reportType);

    ?????  report.ReportParameters

    this.ReportViewer1.Report = report;
    this.Page.Title = reportType.Name;


1 Answer, 1 is accepted

Sort by
0
Kwon OhJong
Top achievements
Rank 2
answered on 04 Nov 2009, 07:53 AM

IReportDocument report = (IReportDocument)Activator.CreateInstance(reportType);
->
Report report = (Report)Activator.CreateInstance(reportType);

report.ReportParameters["Institute"].Value = "381";

Tags
General Discussions
Asked by
Kwon OhJong
Top achievements
Rank 2
Answers by
Kwon OhJong
Top achievements
Rank 2
Share this question
or