Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing a report directly from a datatable
Message
De
19/12/2007 13:46:02
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Rapports
Titre:
Printing a report directly from a datatable
Versions des environnements
Environment:
C# 2.0
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01276646
Message ID:
01276646
Vues:
55
Hello all,

I have a method that creates a DataTable, and now i want to create a CrystalReports report that prints the DataTable Data.

The problem is that all the samples i found points to using a DataSet, with bound fields, that must be visible before creating the report, in order to CrystalReports can find them, and so i can put them in the report.
I don't have none of this, my DataTable is created at RunTime just before i print the report and then i discard it.
I need to pass the DataTable as a parameter to the ReportViewer (or to a form holding the reportviewer) and then define this DataTable as the report datasource.

For me it's very simple, but it seems that CrystalReports don't do this, or does?
Does anyone created something like this?

TIA,
Joaquim
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform