i have a vb application and crystal report viewer control and i want to know how can i pass a parameter to the report i called from options the user chose in the application. my code is below. help please thanks you very much
//declarations
Dim lApplication As CRAXDRT.Application
Dim lReport As CRAXDRT.Report1
//this is somehere in the form like click event
Set lApplication = New CRAXDDRT.Application
Set lReport = lApplication.OpenReport"c:\gltesting\samply.rptgary\IED.rpt", 1)
CRViewer1.ReportSource = lReport
CRViewer1.ViewReport
//declarations
Dim lApplication As CRAXDRT.Application
Dim lReport As CRAXDRT.Report1
//this is somehere in the form like click event
Set lApplication = New CRAXDDRT.Application
Set lReport = lApplication.OpenReport"c:\gltesting\samply.rptgary\IED.rpt", 1)
CRViewer1.ReportSource = lReport
CRViewer1.ViewReport