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:
00961957
Vues:
10
>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

Yes but I don't know where to get the reference to the report.(oMyReport = ???)
I'm not seeing anything in the viewer that looks like a way into the report and I load the report into the viewer as a file reference. (Should I be doing that as a report object?)
Chris
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform