Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

My parameter is ignored 1

Status
Not open for further replies.

penkehenke

Programmer
Jun 21, 2004
15
SE
Hi!

-------------
version: 10
Language: ASP
-------------

I have created a parameter in my report and I pass a value
to it in runtime.

But when I read/use the parameter value, it is the same as the one I tested with when I created the report.

I've used the following code:

For Each field In clientDoc.DataDefinition.ParameterFields
Dim discreteValue, newfield, val
Set newField = ObjFactory.CreateObject ("CrystalReports.ParameterField")
Set val = ObjFactory.CreateObject("CrystalReports.ParameterFieldDiscreteValue")
discreteValue = 12150000
val.Value = discreteValue
newField.CurrentValues.Add val
Next

 
Does your report have saved data ? (File menu-> Save data with report)

If this is ticked remove the tick,save the report and rerun from your appliaction.

It is always advisable to use the reports DiscardSavedData method in your appliacation before running the report.

HTH

Gary Parker
MIS Data Analyst
Manchester, England
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top