Francis,
This was made for the automation-server approach rather than the OCX, but you might use the same strategy. First off all you must create parameter fields within the report and name them excactly the same as your VFP variables
then cange this code fitted for your situation:
WITH THISFORM.crReport.ParameterFields
FOR nT= 1 TO .Count
cName=.Item(nT).ParameterFieldName
IF TYPE(cName) # "U"
.item(nT).SetCurrentValue(EVAL(cName))
ENDIF
ENDFOR
ENDWITH
Walter,
>I am using CR with VFP. I call CR from VFP using an OCX(like in the foxtalk example of nov. 1999). Through the OCX I can pass the report title and other parameters. In addition I need to pass information to be displayed on the header, footer and legend. These are VFP variables. How can I read these from CR. The only way that I know is using another table (one table for my data and one table for the text around the report) If you known another way please let me know.
>
>Regards
>Francis St-Gelais