i want to pass crystal report formula fields value at runtime ..
i used following code but it gives error
rptdoc.DataDefinition.FormulaFields["bankname"].Text = "ajay"; please help me
thanks in advance
How to pass crystal report fourmula fields value at run time
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Nilanka DharmadasaRank #1,875 · 794 reputationPosted Mar 3, 2015, 12:19 PM EST
rptdoc.DataDefinition.FormulaFields["{@bankname}"].Text = "'ajay'";
Ajay Sutar15 reputationPosted Mar 3, 2015, 6:57 PM EST
it gives me error Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))
Ajay Sutar15 reputationPosted Mar 3, 2015, 7:13 PM EST
Iam Getting this error
The remaining text does not appear to be part of the formula. Details: errorKind Error in File Report {B1D9B2F9-7D83-4BA2-B9FB-A58165959594}.rpt: Error in formula bankname: 'passing' The remaining text does not appear to be part of the formula. Details: errorKind
plz help me to solve this error
thanks in advance