Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Crystal Reports passing sp value
Message
From
08/06/2001 12:29:00
 
 
General information
Forum:
Microsoft SQL Server
Category:
Third party products
Miscellaneous
Thread ID:
00516444
Message ID:
00517016
Views:
21
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform