public void Expression_parser_test()
 {
     var expr = new RdlExpression("=DateAdd(\"d\",-1, Today())")
     {
         GetParameterValue = (p) => 12
     };
     var def = expr.Compile().ToString();
     var res = expr.Evaluate();
 }
        public object EvaluateExpression(string expression)
        {
            var expr = new RdlExpression(expression)
            {
                GetParameterValue = GetReportParameterValue
            };

            return(expr.Evaluate());
        }
Пример #3
0
        public object EvaluateExpression(string expression)
        {
            var expr = new RdlExpression(expression)
            {
                GetParameterValue = GetReportParameterValue
            };

            return expr.Evaluate();
        }