Method Evaluate
- Namespace
- DocWright.Reporting.Processing
- Assembly
- DocWright.Reporting.dll
Evaluate(string)
Evaluates an expression at report scope — outside every data region — against the run's data:
=Sum(Fields!Sales.Value, "Sales"), =Variables!Title.Value, =Parameters!Region.Label.
public object? Evaluate(string expression)
Parameters
expressionstringThe expression text, beginning with '='; text without it is returned as it is.
Returns
- object
The value.
Exceptions
- ArgumentNullException
expressionis null.- ReportExpressionException
The expression is not valid, or failed.
- ObjectDisposedException
The instance has been disposed.
Evaluate(ReportExpression)
Evaluates a parsed expression at report scope against the run's data.
public object? Evaluate(ReportExpression expression)
Parameters
expressionReportExpressionThe expression.
Returns
- object
The value.
Exceptions
- ArgumentNullException
expressionis null.- ReportExpressionException
The expression failed.
- ObjectDisposedException
The instance has been disposed.