Click here to Skip to main content
15,922,427 members
Please Sign up or sign in to vote.
3.67/5 (2 votes)
See more:
I am new for crystal reports, i am getting the following error when i run the report

title: 
COMException was unhadled:
error:
Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))



VB
TPGateScr.SetParameterValue("header", "SCRUTINY ATTENDANCE")


that error coming forat the above line

plz help me..

Thanks & regards
hONEY..

[edit]SHOUTING removed, Tags, Urgency removed - OriginalGriff[/edit]
Posted
Updated 7-Sep-11 21:47pm
v2
Comments
OriginalGriff 8-Sep-11 3:48am    
DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.
Urgency deleted: It may be urgent to you, but it isn't to us. All that your stressing the urgency does is to make us think you have left it too late, and want us to do it for you. This annoys some people, and can slow a response.

1 solution

Hi use like this
VB
TPGateScr.SetParameterValue(0, "SCRUTINY ATTENDANCE")

don't use parameter name, use the index ,it starts from 0
 
Share this answer
 
v3

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