Cryatal report error
-
{"Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))"} im passing int value in CR. mine string value is working but not INTEGER. HELP!!!!!
-
{"Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))"} im passing int value in CR. mine string value is working but not INTEGER. HELP!!!!!
This code converts from string to index
String strIndex = "12";
Int32 nIndex = Convert.ToInt32(strIndex); -
This code converts from string to index
String strIndex = "12";
Int32 nIndex = Convert.ToInt32(strIndex);1. crParameterDiscreteValue.Value = Convert.ToInt32(txtRecptNo.Text) - 1; 2. crParameterFieldDefinitions = cryRpt.DataDefinition.ParameterFields; 3. crParameterFieldDefinition = crParameterFieldDefinitions["recpt"]; point no. 3 gives that error.
-
1. crParameterDiscreteValue.Value = Convert.ToInt32(txtRecptNo.Text) - 1; 2. crParameterFieldDefinitions = cryRpt.DataDefinition.ParameterFields; 3. crParameterFieldDefinition = crParameterFieldDefinitions["recpt"]; point no. 3 gives that error.