I have a question concerning sub reports. What I want the report to do is this... loop through a set of records, if a value in the record is 'Summary', then I want it to display my Summary subreport. If the value is 'DataEntry', then I want it to display my DataEntry subreport. There could be any number of records in my original set, so the final report could be Summary, DataEntry, DataEntry, Summary, DataEntry, or it could be just DataEntry. You get the point. I'm thinking that to do this, I should have one Master Report and then programically add sub reports depending on the value in the record. I have the looping done, no sweat, it's the adding of the subreports that I can't seem to grasp. Any ideas, thoughts, or suggestions?
5 Answers, 1 is accepted
0
Hi TPerry,
This forum thread should shed more light on the matter.
Greetings,
Steve
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
This forum thread should shed more light on the matter.
Greetings,
Steve
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0

TPerry
Top achievements
Rank 1
answered on 29 Apr 2009, 05:21 PM
Thank you - it looks as though that will help me. Except, I'm having a problem with this line:
List<Report> detailReports = new List<Report>();
What is that equvilant in vb?
I tried this: Dim detailReports As New List(Of Report)()
but get: Error 'Telerik.Reporting.List' has no type parameters and so cannot have type arguments.
List<Report> detailReports = new List<Report>();
What is that equvilant in vb?
I tried this: Dim detailReports As New List(Of Report)()
but get: Error 'Telerik.Reporting.List' has no type parameters and so cannot have type arguments.
0
Hello TPerry,
Your VB line looks correct and more info on the error you receive is available in this MSDN topic.
Kind regards,
Steve
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Your VB line looks correct and more info on the error you receive is available in this MSDN topic.
Kind regards,
Steve
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0

TPerry
Top achievements
Rank 1
answered on 04 May 2009, 03:05 PM
Maybe I'm just confused... is that code supposed to go on the aspx.vb page that contains the ReportViewer? If so, I'm still getting that error. If it's suposed to go on the report.vb page, I don't get the error, but I can't figure out how to assign the CombinedReport to display, because I can't say me.reportview.report = report. Help!
0
Hello TPerry,
This code goes in your application e.g. in the forum post it is executed on button click. Make sure that you've added reference to System.Collections.Generic in your page.
Regards,
Steve
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
This code goes in your application e.g. in the forum post it is executed on button click. Make sure that you've added reference to System.Collections.Generic in your page.
Regards,
Steve
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.