I'm using the Crystal Report Control to open a report from Visual Basic. I can't find the help files for this and need to be able to pass a parameter to the report.
Any ideas? paqguy - Shaun Beane
Instructor/Developer
sbeane@adelphia.net
Dim crpParamDef As CRAXDRT.ParameterFieldDefinition
Dim crpParamDefs As CRAXDRT.ParameterFieldDefinitions
'Open report for manipulation
Set crpReport = crpApplication.OpenReport(ReportFilename)
'Create a variable to relate to the report parameter fields
Set crpParamDefs = crpReport.ParameterFields
'Course through the parameter collection and set the values
'of the reports parameter fields.
For Each crpParamDef In crpParamDefs
With crpParamDef
Select Case .ParameterFieldName
Case "ParameterName1"'The name of parameter to pass.
.SetCurrentValue Value
Case "ParameterName2"'The name of parameter to pass.
.SetCurrentValue Value 'Case ... etc.
End Select
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.