Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Crystal Reports - Passing Parameters to
Message
De
02/05/2005 13:10:42
 
 
À
02/05/2005 13:06:49
Andy Roth
Neyenesch Printers
Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Crystal Reports
Divers
Thread ID:
01010203
Message ID:
01010205
Vues:
21
If you already have your crystal report object set up with the report that you are going to run, all you have to do is something similar to below:

tcParameterName = the name of the parameter you want to set.
tuValue = the value you want to set the parameter to.
This.oReport = your crystal report object.
FOR EACH loParamDef IN This.oReport.ParameterFields
			WITH loParamDef
				lcParmName = LOWER(.ParameterFieldName)
				IF lcParmName = "@" + LOWER(tcParameterName) ;
					OR lcParmName = LOWER(tcParameterName)

					.SetCurrentValue(tuValue)
					RETURN .T.
				ENDIF
			ENDWITH
		NEXT loParamDef
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform