Using VB 6 and Crystal Report 8.5
I want to pass the date parameter filed in CRViewer control.
Code:
Dim crApp As CRAXDRT.Application
Dim Report As CRAXDRT.Report
CR2.ParameterFields(1) = "txtFromDate;" & dtpFrom.Value & ";true"
CR2.ParameterFields(2) = "txtToDate;" & dtpTo.Value & ";true"
CR2.DataFiles(0) = App.Path & "\STAR.mdb"
CR2.ReportFileName = App.Path & "\MS.rpt"
Set crApp = New CRAXDRT.Application
Set Report = crApp.OpenReport(App.Path & "\MS.rpt")
CRViewer2.ReportSource = Report
CRViewer2.ViewReport
Parameterfield(1), Parameterfield(2) was not displaying in the crviewercontrol.
How to pass the date parameter field in the CRViewer control?
Need VB 6 code help.