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

reportViewer1.Report.ReportParameters[0].Value = "" in Q2_2009 no longer works

1 Answer 91 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sergei Rassk
Top achievements
Rank 1
Sergei Rassk asked on 16 Oct 2009, 11:43 PM
I am getting error:
Cannot apply indexing with [] to an expression of type 'System.Collections.Generic.IEnumerable<Telerik.Reporting.ReportParameter>
Any new workaround for this one?  Cheers.

1 Answer, 1 is accepted

Sort by
0
Sergei Rassk
Top achievements
Rank 1
answered on 17 Oct 2009, 12:34 AM

I have found a solutiion in Knowledge Base since Q1_2009
ReportViewer.Report property is no longer of type Telerik.Reporting.Report, but of Telerik.Reporting.IReportDocument.
Simple solution:
Telerik.Reporting.

Report reportViewer1Report = (Telerik.Reporting.Report)reportViewer1.Report;

 

 

 reportViewer1Report .ReportParameters[0].Value = <Value>;

 

 

 

Tags
General Discussions
Asked by
Sergei Rassk
Top achievements
Rank 1
Answers by
Sergei Rassk
Top achievements
Rank 1
Share this question
or