Information générale
Titre:
Printing a report directly from a datatable
Versions des environnements
Network:
Windows 2003 Server
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement