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

Problem with linked subreports

1 Answer 34 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
TechSavvySam
Top achievements
Rank 1
TechSavvySam asked on 20 Sep 2010, 02:45 PM
version: Telerik_Reporting_Q2_2010_v4_1_10_714_dev.msi

I have a master report that links to a subreport similarly to what is done in the video: http://tv.telerik.com/watch/reporting/video/telerik-trainer-reporting-subreports

=======================================================
MasterReport

BlahID: {Fields.BlahId}
     ------------------------
     Subreport:

     Parameter Name   Parameter Value
     BlahId           =Fields.BlahId
=======================================================

=======================================================
Subreport

Report Parameters
   Members:
        BlahId Integer

DataSource: odsBlahDetail (object data source)
    This object returns data from a table with a WHERE clause that contains:
    
            WHERE BlahId=@BlahId
=======================================================

When I create the report without the subreport, everything works fine.  I get:

BlahID: 18
BlahID: 23
BlahID: 45
...

When I add the subreport in I get no report.  I ran some debugging and SQL profiler an determined that what is happening, is Telerik Reporting is in an infinite loop calling the subreport with the BlahID of 18 (the first one).

From what I can tell, I've set up my report the same as the above video, but since you don't post the source code for these videos, I can't definitively determine if I have...

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 22 Sep 2010, 08:17 AM
Hello Sam,

The information you've provided looks correct and we're unable to identify what is wrong without elaborating.
The source for the video you've watched is part of our Telerik Trainer tutorials and its code is available on our site here: Telerik Reporting Trainer Tutorials.
Additionally you can review the Creating Master-Detail Reports Using SubReports help article for step by step instructions on setting one to many relations i.e. master-detail report and see its implementation in action by opening our Visual Studio examples and navigate to the Invoice demo report.

Best wishes,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
TechSavvySam
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or