Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change the dataset used by a rpt in the viewer?
Message
General information
Forum:
ASP.NET
Category:
Reporting
Miscellaneous
Thread ID:
00961947
Message ID:
00961952
Views:
9
Hi, Christopher,

The way I do it is to get an object reference to the report, and use the SetDataSource method of the report's Database object, like so...
oMyReport.Database.Tables[0].SetDataSource(myDataSet.Tables["firsttable"]);
oMyReport.Database.Tables[1].SetDataSource(myDataSet.Tables["secondtable"]);
oMyReport.Database.Tables[2].SetDataSource(myDataSet.Tables["thirdtable"]);
Does that help?
Kevin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform