Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pass parameters in Crystal Report
Message
Information générale
Forum:
ASP.NET
Catégorie:
Rapports
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
00964140
Message ID:
00965817
Vues:
8
>Thanks for the link...
>
>I was able to pass the value but after binding the report
>it ask for Parameter (The Crystal Report Window).
>
>Instead of displaying the window, I use a code to pass the value..
>
>How do i accomplish this?

this is C# code but the concept works in VB

CrystalReport1 PORep = new CrystalReport1();
// Set data
PORep.SetDataSource(dsPrint.Tables[0]);
// Take care of params
PORep.SetParameterValue("mModel",this.AL[0]);
PORep.SetParameterValue("mMount",this.AL[1]);
PORep.SetParameterValue("mGear",this.AL[2]);
PORep.SetParameterValue("mInput",this.AL[3]);
PORep.SetParameterValue("mFilter",this.AL[4]);
// bind it all together
crystalReportViewer1.ReportSource = PORep;
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform