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

Report property is now obselet : 6.1.12.611

3 Answers 125 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Louis
Top achievements
Rank 1
Iron
Iron
Iron
Louis asked on 19 Jun 2012, 02:47 PM
Well,

Again, any suggestion to change this code.  Report is obselete

ReportViewerFC.Report = ( (Telerik.Reporting.Report)Activator.CreateInstance("Rapports", ViewData["Gabarit"].ToString()).Unwrap());       
Telerik.Reporting.Report report = (Telerik.Reporting.Report)this.ReportViewerFC.Report;

3 Answers, 1 is accepted

Sort by
0
Stephan
Top achievements
Rank 1
answered on 19 Jun 2012, 03:21 PM
Before

ReportViewerFC.Report = ( (Telerik.Reporting.Report)Activator.CreateInstance("Rapports", ViewData["Gabarit"].ToString()).Unwrap());       

Telerik.Reporting.Report report = (Telerik.Reporting.Report)this.ReportViewerFC.Report;


Since Q2/2012:

InstanceReportSource rsource = new InstanceReportSource();
rsource.ReportDocument = ( (Telerik.Reporting.Report)Activator.CreateInstance("Rapports",
ViewData["Gabarit"].ToString()).Unwrap());

ReportViewerFC.ReportSource = rsource;
Telerik.Reporting.Report report = (Telerik.Reporting.Report)this.ReportViewerFC.Report;

0
Louis
Top achievements
Rank 1
Iron
Iron
Iron
answered on 20 Jun 2012, 01:44 PM
Nice.  Thank you Marco.  It's working now.  I see the way to use parameter is quite different now but I think it's for the best.

0
Accepted
Stephan
Top achievements
Rank 1
answered on 20 Jun 2012, 01:47 PM
Your're welcome, Louis.
Please mark my answer as "solution", if possible.
Tags
General Discussions
Asked by
Louis
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Stephan
Top achievements
Rank 1
Louis
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or