Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Binding my report to a DataTable
Message
Information générale
Forum:
ASP.NET
Catégorie:
Rapports
Divers
Thread ID:
00972592
Message ID:
00972667
Vues:
13
Kevin,
Thanks for the reply. The information you provided was very valuable. So to recap what you said: I have to one or more table(s) availabe, with the correct structure, at designtime and then I can use datatable(s) at runtime that follow the same structure as the table(s) used during designtime. Please let me know if I misinterpreted you.

As far as #2 goes I think I figured it out myself. I created a blank report with nothing more than printed date in the header and page X of Y in the footer and tried to run the report and it worked as I would expext. I am not sure what I will use this type of report for but it was something I had used in VFP in the past so I thought I should test it out.

Thanks,
Einar

>Hey, Einar,
>
>On #1, let's say that when you designed the report, you utilized some type of schema definition (maybe from XML or other data source) that had two data tables...DtHeader and DtDetails.
>
>At report runtime, you can do...
>
>
>oMyReport.Database.Tables[0].SetDataSource(DtHeader);
>oMyReport.Database.Tables[1].SetDataSource(DtDetails);
>
>
>On #2...while I've never actually tried it...if you report is nothing but labels and no data, I would "guess" you'd be able to generate the one-page report without a 1-row table. But you'd have to give it a try to be sure.
>
>Also, the link Eric gave you is a good one...Eric Bischoff's book is definitely the best book for CR.net
>
>Kevin
Semper ubi sub ubi.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform