Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing a report directly from a datatable
Message
De
19/12/2007 14:07:53
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
À
19/12/2007 13:46:02
Information générale
Forum:
ASP.NET
Catégorie:
Rapports
Versions des environnements
Environment:
C# 2.0
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01276646
Message ID:
01276648
Vues:
21
Joaquim,
I see you are use 2.0. You should be able to make an XML representation of your datatable when you create it in code. Do this once, export it to a file, and use that file to build your Crystal Report.

>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
Very fitting: http://xkcd.com/386/
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform