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

SubReport ReportSource DataSource

1 Answer 225 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jon Morris
Top achievements
Rank 1
Jon Morris asked on 20 Aug 2012, 03:35 PM
As the Title indicates, I had a version of my reports project working fine. I upgraded to 6.1.12.611 today and this line of code is throwing an error.

"SubReport7.ReportSource.DataSource = data"

The code snippet is as below

StartDate = ReportParameters("StartDate").Value
EndDate = ReportParameters("EndDate").Value
ID = ReportParameters("ID").Value
Source = ReportParameters("Source").Value
data = adapter.GetData(StartDate, EndDate, Source, ID)
SubReport7.ReportSource.DataSource = data

adapter is Table adapter and data is DataTable. Can you tell me why this code doesn't work anymore.

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 20 Aug 2012, 03:43 PM
Hi Jon,

Please upgrade to the Q2 2012 SP1 release shipped today where we're throwing a more accurate obsolete warning that would guide you how to upgrade your project. For more information, refer to the How to migrate your project to utilize the new ReportSource objects KB article that elaborates on your inquiry.

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
Jon Morris
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or