[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Core.Rendering.ReportEval.MakeContext

MakeContext Method

MakeContext(IReportInformationService, IPageInformationService, IReadOnlyDictionary<string, object>, Lazy<Parameters>)

Creates an evaluation context with the specified parameters.

Declaration
public static IEvaluationContext MakeContext(IReportInformationService reportInfo, IPageInformationService pageInfo, IReadOnlyDictionary<string, object> customContext = null, Lazy<Parameters> parameters = null)
Parameters
Type Name Description
IReportInformationService reportInfo

The report information service.

IPageInformationService pageInfo

The page information service.

IReadOnlyDictionary<string, object> customContext

Optional custom context fields.

Lazy<Parameters> parameters

Optional parameters.

Returns
Type Description
IEvaluationContext

An instance of IEvaluationContext.

MakeContext(Report, ThemeService, IReportInformationService, ResourceLocator, Lazy<Parameters>, int, IReadOnlyDictionary<string, object>)

Creates an evaluation context for a report.

Declaration
public static IEvaluationContext MakeContext(Report report, ThemeService themeService, IReportInformationService reportInfo, ResourceLocator resourceLocator, Lazy<Parameters> parameters = null, int themeIndex = 0, IReadOnlyDictionary<string, object> customContext = null)
Parameters
Type Name Description
Report report

The report definition.

ThemeService themeService

The theme service.

IReportInformationService reportInfo

The report information service.

ResourceLocator resourceLocator

The resource locator.

Lazy<Parameters> parameters

Optional parameters.

int themeIndex

The theme index.

IReadOnlyDictionary<string, object> customContext

Optional custom context fields.

Returns
Type Description
IEvaluationContext

An instance of IEvaluationContext.

Exceptions
Type Condition
ArgumentNullException

Thrown when report is null.