How to pass parameter to CrystalReports ?
-
i posted about how to pass my parameter to Crystalreports and a person reply to me by this code : crystalReport11.SetDataSource(MyDataSet); crystalReport11.SetParameterValue("PrintDate1", "2006/05/07"); // this line that error occured crystalReportViewer1.ReportSource = crystalReport11; but the following error shown me : Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX)) how to solve my problem and pass my parameter to crystalreports ? thanks
-
i posted about how to pass my parameter to Crystalreports and a person reply to me by this code : crystalReport11.SetDataSource(MyDataSet); crystalReport11.SetParameterValue("PrintDate1", "2006/05/07"); // this line that error occured crystalReportViewer1.ReportSource = crystalReport11; but the following error shown me : Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX)) how to solve my problem and pass my parameter to crystalreports ? thanks