The article on my web site shows you how to handle parameters.
BTW, the line
CRReport = createobject("CrystalRuntime.Report")
in your code is not needed.
>I have created a VFP application utilizing the report viewer to allow users to view and print these reports.
> I use the following code.
>
>Public CRApplication
>Public CRReport
>this.text1.refresh
>CRApplication = createobject("CrystalRuntime.Application")
>CRReport = createobject("CrystalRuntime.Report")
>thisreport = '"'+alltrim(crystal_reports.filepath)+'"'
>CRReport = CRApplication.openreport(&thisreport)
>thisform.pageframe1.page2.rptviewer.reportsource=CRReport
>thisform.pageframe1.page2.rptviewer.enableexportbutton=.t.
>thisform.pageframe1.page2.rptviewer.enablepopupmenu=.t.
>thisform.pageframe1.page2.rptviewer.enablezoomcontrol=.t.
>thisform.pageframe1.page2.rptviewer.enablesearchexpertbutton=.t.
>thisform.pageframe1.page2.rptviewer.viewreport
>
>I need to pass parameter values to the report. Can someone lead me in the right direction.
>
>
>Thanks
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer