Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change the dataset used by a rpt in the viewer?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Rapports
Divers
Thread ID:
00961947
Message ID:
00961952
Vues:
8
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform