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

Upgrading Telerik reports Q3 2009 to the latest version

1 Answer 55 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ashwini
Top achievements
Rank 1
Ashwini asked on 10 Jun 2012, 04:05 PM

I have a lot of reports developed using Q3 2009 version of telerik reporting. Before developing new reports, we want to ensure that the existing reports work as they used to after upgrading to latest version of telerik reporting. But all the reports which use subreport fail compilation with the error: 'DataItem' is not a member of 'Telerik.Reporting.Processing.SubReport'.

All the reports use objectdatasource.

 

 

 

 

 

Private Sub SubReport1_NeedDataSource(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SubReport1.NeedDataSource

 

 

 

Dim subReport As Telerik.Reporting.Processing.SubReport = DirectCast(sender, Telerik.Reporting.Processing.SubReport)

 

subReport.InnerReport.DataSource =

 

DirectCast(subReport.DataItem, System.Data.DataRowView)("subreportList")

 

 

 

End Sub

Please suggest what needs to be done here so that I can quickly fix these existing reports and then move to development of new reports

Thanks in advance

 

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 11 Jun 2012, 07:11 AM
Hi Ashwini,

This API change has been introduced long ago and should you have upgraded in a shorter period of time, you would have received warnings upon compile, that it is obsolete and what you should use instead. Since you upgrade from a version that is 3 years old, the DataItem property is long gone and you do not get any warnings for this reason. To get your reports up and running, please follow the instructions from the following KB article: ReportItemBase.DataItem property (Telerik.Reporting.Processing) has been replaced by property DataObject.

Greetings,
Steve
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

Tags
General Discussions
Asked by
Ashwini
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or