Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Crystal Reports passing sp value
Message
De
08/06/2001 12:29:00
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Produits tierce partie
Divers
Thread ID:
00516444
Message ID:
00517016
Vues:
22
>When I was using the version of CR that was included with VB6 (4.x), I could code something like the following to pass parameters to the report based on MSSQL stored procedure:
>
>CRpt.ReportFileName = "c:\mediadna\listorders.rpt"
>CRpt.StoredProcParam(0) = gobjMailingOrder.MailingOrderID
>CRpt.StoredProcParam(1) = gobjMailingOrder.MailingTitle
>CRpt.StoredProcParam(2) = gobjClient.Clientname
>
>Now, StoredProcParam property doesn't seem to exist in the latest version (I'm using RDC) so how do I pass the values to the parameters?
>
>Also, if I design a CR report from within VB, it adds to the Designers folder in the Project Group but this report seems to be a different format than the report I design from within CR. The files have different file extensions, DSR/DSX vs. RPT respectively. Why and which way should I design my reports?
>
>TIA.

You have to use the parameterfields collection of the Report:

oReport.ParameterFields(0).AddCurrentValue( 'value here' )

BOb
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform