Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hye all..
Why is actually this error occuring?
Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))

at
rpt.SetParameterValue("fy", filter)


in this code

VB
Me.crvQuality.ReportSource = rpt
       rpt.SetParameterValue("fy", filter)
       crvQuality.DataBind()
       crvQuality.RefreshReport()



I have googled and found that this error is because parameter name is not same in crystal report and aspx code behind. Howerver I have checked many times and I am sure that my text object name is 'fy'. Without putting this inside my code, the report is viewed nicely.

But I still need to put the report title based on my dropdownlist.selectedvalue.
Tq all for your help
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900