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

Multiple Datasources for report?

4 Answers 435 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chris @ Intrinsic
Top achievements
Rank 1
Chris @ Intrinsic asked on 02 Jun 2011, 11:36 PM
Is it possible to use multiple datasources on the one report, and use them at the same time,  like Datasource1.field1,  Datasource1.field2, datasource2.field1, etc.?  I've already searched the forums and google, and the posts are all from 2008, so maybe it has been improved since then?



4 Answers, 1 is accepted

Sort by
0
Chris @ Intrinsic
Top achievements
Rank 1
answered on 02 Jun 2011, 11:58 PM
I see you can create subreports.  But, then the question is how do you create a subreport?  How do you embed it?  I see that you are supposed to see a telerik report option in the toolbox, but it doesn't exist.  how do you get it to appear?  I think telerik reporting didn't install correctly? 
0
Chris @ Intrinsic
Top achievements
Rank 1
answered on 03 Jun 2011, 12:16 AM
Fixed it myself again.   I had to right click on the toolbox, then click reset toolbox.  The telerik toolbox items all came back.  So, now I see you can add a subreport.  So, I guess you have to create another report then assign the report to the subreport.  the documentation doesn't tell you to do this specifically.    I see the walkthroughs and examples, but they are from .net 2.0 days.   
0
Chris @ Intrinsic
Top achievements
Rank 1
answered on 31 Aug 2011, 06:20 PM
Another question about report datasources:

I have one dataset with multiple tables.  i want to use those tables for parts of the report.  For example, one table has one record in it, and I want to use it for the top and bottom of the report.  And, one table has multiple records in it, and I want to use it for the detail section.  I can't access any of the fields in the report. (the fields come up blank.)  what should I do in code behind to make sure that the report can view the tables?  I am also using it as a WebService (WCF), so the tables are Not available at design time, but I've got many reports working using my WCF service.

Thanks!

0
Chris @ Intrinsic
Top achievements
Rank 1
answered on 01 Sep 2011, 09:13 PM

FIXED it:

 

report.DataSource = ds1.Tables[

 

"Results"];

 

report.PartDTable.DataSource = ds1.Tables[

 

"Results2"];


so, PartDTable is a table with multiple rows. 

Very straight forward.

 

Tags
General Discussions
Asked by
Chris @ Intrinsic
Top achievements
Rank 1
Answers by
Chris @ Intrinsic
Top achievements
Rank 1
Share this question
or