Posted 26 May 2025, 10:08 am EST - Updated 26 May 2025, 10:16 am EST
See attached sample: it renders a report by loading a xml data source.
FlexReportError_2025-05-26.zip
We handle the event “C1FlexReport.Report_ReportError”, and this is raised with .708. with this error:
System.ArgumentException: Evaluate expression '': Value does not fall within the expected range.
---> System.ArgumentException: Value does not fall within the expected range.
at bu.h(c a, DateTime b, DateTime c, CultureInfo d, b e, a f)
at bu.i(String a, Object b, Object c, CultureInfo d, b e, a f)
at C1.Report.ScriptEngine.ParmExpression.Evaluate()
at C1.Win.FlexReport.ScriptEngine.ParmExpression.Evaluate()
at bn.Evaluate()
at C1.Report.ScriptEngine.ParmExpression.Parm(Int32 i)
at C1.Report.ScriptEngine.ParmExpression.ParmInt(Int32 i)
at C1.Report.ScriptEngine.ParmExpression.Evaluate()
at C1.Win.FlexReport.ScriptEngine.ParmExpression.Evaluate()
at C1.Report.ScriptEngine.ParmExpression.Parm(Int32 i)
at C1.Report.ScriptEngine.ParmExpression.Evaluate()
at C1.Win.FlexReport.ScriptEngine.ParmExpression.Evaluate()
at C1.Report.ScriptEngine.ReportScriptContextBase.Evaluate(Expression expression, Object onError, Object& value)
--- End of inner exception stack trace ---
I think it is caused by this field which executes “DateDiff (“h”, date1, date2)” to calculate the hour difference:
Seems you don’t support this hour mode any more? It also fails for “d” like “day difference”
See https://www.w3schools.com/asp/func_datediff.asp
It worked with .700.
Best regards
Wolfgang