Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need to pass VFP variables to Crystal Report
Message
From
04/01/2000 02:02:42
Walter Meester
HoogkarspelNetherlands
 
 
To
04/01/2000 00:31:07
Francis St-Gelais
FST Applications System Inc.
Ottawa, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00312176
Message ID:
00312187
Views:
26
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
Previous
Reply
Map
View

Click here to load this message in the networking platform