Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Crystal Reports VS2012 This field name is not known error


I have problem when trying to set parameter values from the code. When I start the report without setting parameter values but leave the report with parameters set already in report designer the report opens correctly. When I try to change the CurrentValues to new ones from code there is immediately FormulaException and an error saying that the field name is not known am.

Record Formula is

{TDATE} >= {?FromDate} and {TDATE} < {?ToDate}+1

and here is how I'm setting the parameters in code:

rd.SetParameterValue("FromDate", strFromDate);
rd.SetParameterValue("ToDate", strToDate);

My version of CrystalDecisions.CrystalReports.Engine is 13.0.2000.

I tryed different things and also read in several forums but nothing helped.

I will appriciate any advice.

Thank you.

Former Member
Not what you were looking for? View more on this topic or Ask a question