oEngineObject=CREATEOBJECT("Crystal.CRPE.Application") oReport=oEngineobject.openreport(cReportname) oReport.ParameterPromptingEnabled=.F. * Set optional parameterfields * Each parameterfield has a name. If this name match an existing VFP variable * Then pass the value of this variable to the parameterfield of the report. * note that the VFP variables used for these paramaters must be declared either Public or * Private in the calling method. WITH oReport.ParameterFields FOR nT= 1 TO .Count cName=.Item(nT).ParameterFieldName IF TYPE(cName) # "U" .item(nT).SetCurrentValue(EVAL(cName)) ENDIF ENDFOR ENDWITHFor more documentation about the automation server approach see help.