Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pointing a Crystal textobject at a dataset field
Message
 
À
28/08/2002 01:26:01
Ron Hodge
Sebrex Systems, Inc.
Dacula, Georgie, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00694184
Message ID:
00694601
Vues:
14
I tried what you suggested. I created a table with the same name and fields as my dataset. Built the report with that. I then deleted the table, then in the ASP.NET form I specify the dataset using
oReport.SetDataSource(dsStaff);
which I hoped the report would then use, instead of trying to reference the delete table. I get the following error... which I take to mean that the crystal report can't find the table. Any ideas how to make this work?
Logon failed. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed.
>If you present a datasource with the same table name as the report you designed the report with, Crystal will work fine with it. What I've done on a few reports is build the sql select statement in the form where the user selects his report criteria, then pass that to the constructor for the form that has a CR report viewer control on it. That form creates a table or data set with the same name and fields, and then uses the SetDataSource method to tell the report to use that as the data source.
>
>So you can use a table or data set used by the project to build the report, then create your own at report time. And I suppose you could create one just long enough to create the report, delete it, and run the report from your ad hoc source as described above.
>
>I also pass parameters the same way, both for sql statement building and on-form fields.
>
>HTH.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform