|
Subject:
|
crystalReportviewer unable to detect crystalparame
|
|
Posted By:
|
geetageetageeta
|
Post Date:
|
4/5/2006 11:48:03 PM
|
hi ,
This is geeta. I have passed command in report that is
select * from product where 'productId' = ' {?prodId}'
also i have created a parameter prodId from field exploder.
My asp.net coding is attached with mail where error occur in the following positions
private void prepareReport() { string strExportFile= Server.MapPath(".") + "/CrystalReport3.xls"; crReportDocument.Load(Server.MapPath("CrystalReport3.rpt")); CrystalReportViewer1.ReportSource = report; crParameterFields= CrystalReportViewer1.ParameterFieldInfo; Response.Write(crParameterFields.Count); crParameterField = crParameterFields["@prodId"]; **********main error :: index out of bound as **********crParameterFields.count=0 crParameterValues = crParameterField.get_CurrentValues();
**********Can not explicitly call operator & Accesser crParameterDiscreteValue.Value=5; crParameterValues.Add(crParameterDiscreteValue); crParameterValues.Add(crParameterDiscreteValue); CrystalReportViewer1.ParameterFieldInfo =crParameterFields; }
please solve this problem as early as possible,
geeta
|
|