Table of Contents

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

expression string

The expression text, beginning with '='; text without it is returned as it is.

Returns

object

The value.

Exceptions

ArgumentNullException

expression is 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

expression ReportExpression

The expression.

Returns

object

The value.

Exceptions

ArgumentNullException

expression is null.

ReportExpressionException

The expression failed.

ObjectDisposedException

The instance has been disposed.