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
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ajay SutarPosted Mar 4, 2015, 12:13 AM
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
Ajay SutarPosted Mar 3, 2015, 11:57 PM
it gives me error Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))
Nilanka DharmadasaPosted Mar 3, 2015, 5:19 PM
rptdoc.DataDefinition.FormulaFields["{@bankname}"].Text = "'ajay'";