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

subreport duplicate data being shown

1 Answer 278 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
richard
Top achievements
Rank 1
richard asked on 13 Dec 2011, 09:26 PM
I have a report that contains 10 subreports in the details section...all works well except for one thing.

one of the subreports (call it subreport 1) contains a subreport (call it subreport 1a) also. they use 2 different datasources for their data.

subreport1 gets its data (data coming from a custom business object and just fills textboxes, no tables or lists) and all looks prefect.

subreport1a gets its data which has 3 rows  from a different datasource and puts its data into a list on its details section. (data coming from a different custom business object than for its parent).

the problem is that subreport1a instead of showing 3 rows of data shows 6 rows (3 of which are duplicates). I have seen posts that talk about subreports nested in lists or tables but I am not doing that.

any help or suggestions would be greatly appreciated as I dont see anyway to get data to the subreport1a without it being a seperate datasource.

thanks,
richard

1 Answer, 1 is accepted

Sort by
0
Elian
Telerik team
answered on 14 Dec 2011, 04:02 PM
Hi Richard,

Up to your questions:
  • The duplicates usually appear when you bind the report to a data source and at the same time have another data item (such as Table/List/CrossTab) that is bound to the same data source as well.
  • You can set data source directly to the report that you use as SubReport, or use the NeedDataSource event handler of the SubReport item to provide data.
If the problem persists, please open a support ticket and attach a runnable project we can examine.

Best wishes,
Elian
the Telerik team

Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

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