I have a report coRpt. I have define a parametere param1 in that report.
In my web application(aspx page) I am writing this code to assign a value to that parameter.
coRpt.DataDefinition.ParameterFields["param1"] = "MC";
when i complie the app I am getting this error.
'CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinitions.this[string]' cannot be assigned to -- it is read only
Cannot implicitly convert type 'string' to 'CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinition'
I am using crystal report.NET. I don't know how to use parameters in report.
Thanks in advance
In my web application(aspx page) I am writing this code to assign a value to that parameter.
coRpt.DataDefinition.ParameterFields["param1"] = "MC";
when i complie the app I am getting this error.
'CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinitions.this[string]' cannot be assigned to -- it is read only
Cannot implicitly convert type 'string' to 'CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinition'
I am using crystal report.NET. I don't know how to use parameters in report.
Thanks in advance