Click here to Skip to main content
15,886,788 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am new one for reports and i have no idea about reports.
i want to create a report in asp.net using c#, i have two data source and both data sources data must be displayed on single report separately so how can i assign both data source dynamically and also bind those fields on report in rdlc page.

can any one pls help me.
Posted
Updated 14-Mar-11 3:18am
v3

1 solution

You can define multiple datasources for a particular rdl. Add mutliple datasets as a datasource and then use the dataset as a source of a control when you need to display the data of it.

These links should help:
http://msdn.microsoft.com/en-us/library/ms365171%28v=sql.90%29.aspx[^]
http://msdn.microsoft.com/en-us/library/aa237267%28v=sql.80%29.aspx[^]
http://msdn.microsoft.com/en-us/library/ms160324%28v=sql.90%29.aspx[^]
 
Share this answer
 
Comments
khalid92 15-Mar-11 1:54am    
Thanks for rpl.

Actually i am new one for Reporting in asp.net C#,
i have 3 data source one data source i want to display on same report as DataList Format and other two data source i merge than i assing to same report and display as a gird format so how can i do this approach can any one paste code here where i get idea

can i assing dynamically values from datatable like this
MyText = CType(ReportDocument.ReportDefinition.ReportObjects(Text3), TextObject);
MyText.Text = ds.Table(0).Row(0).Item(0).ToString() ;

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900