Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How do I pass parameters to a report thru Report Viewer?

hi,

I am moving from Crystal Reports 8.5 to XI in VB6.

How do I pass parameters to a report thru Report Viewer?

Old VB code:

crReport.ParameterFields(0) = "FrProp;" & Trim$(.FrProp) & ";TRUE"

crReport.ParameterFields(1) = "ThProp;" & Trim$(.ThProp) & ";TRUE"

crReport.ParameterFields(2) = "RunDate;date(" & Format(Cntl.Run_Date, "yyyy,mm,dd") & ");TRUE"

crReport.ParameterFields(3) = "FrDate;date(" & Format(.FrDate, "yyyy,mm,dd") & ");TRUE"

crReport.ParameterFields(4) = "ThDate;date(" & Format(.ThDate, "yyyy,mm,dd") & ");TRUE"

Bill todd

Not what you were looking for? View more on this topic or Ask a question