Here is the weird problem I am facing.
My record selection formula is as follows: I tricked her for the purpose of this error:
reportDocument.RecordSelectionFormula = " {@ClientName} = 'Smith' "
If I copy this exact select statement into Crystal, it previews fine, but when I start with .NET I get
'This field name is unknown.'
The problem occurs in the @ClientName formula @ClientName .
@ClientName just contains:
formula = {aw_illust.CL1LNAM}
I can also set it to an empty string (formula = ""), and it still gives
'This field name is unknown.'
Here's the weird part if I get around the formula and put the formula text directly in .NET. Everything is working fine.
reportDocument.RecordSelectionFormula = " {aw_illust.CL1LNAM} = 'Smith' "
This is the same record choice, except that the formula ' @ClientName replaced by' {aw_illust.CL1LNAM} '. It just happens in this report, I have many other Crystal Reports working with formulas referenced by .NET. Any ideas?
crystal-reports
user258710
source share