Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need to pass VFP variables to Crystal Report
Message
De
04/01/2000 02:02:42
Walter Meester
HoogkarspelPays-Bas
 
 
À
04/01/2000 00:31:07
Francis St-Gelais
FST Applications System Inc.
Ottawa, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00312176
Message ID:
00312187
Vues:
25
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform