Table of Contents

Method Render

Namespace
DocWright.Reporting.Viewer
Assembly
DocWright.Reporting.Viewer.dll

Render(ReportDefinition, FontEngine)

Runs and paginates a definition against made-up data.

public static ReportPageModel Render(ReportDefinition definition, FontEngine fonts)

Parameters

definition ReportDefinition

The report definition.

fonts FontEngine

The fonts to measure with.

Returns

ReportPageModel

The paginated preview.

Render(ReportDefinition, FontEngine, ReportPreviewOptions?)

Runs and paginates a definition against made-up data.

public static ReportPageModel Render(ReportDefinition definition, FontEngine fonts, ReportPreviewOptions? options)

Parameters

definition ReportDefinition

The report definition.

fonts FontEngine

The fonts to measure with.

options ReportPreviewOptions

How to make the data up, or null for the defaults.

Returns

ReportPageModel

The paginated preview.

Render(ReportDefinition, FontEngine, ReportPreviewOptions?, CancellationToken)

Runs and paginates a definition against made-up data.

public static ReportPageModel Render(ReportDefinition definition, FontEngine fonts, ReportPreviewOptions? options, CancellationToken cancellationToken)

Parameters

definition ReportDefinition

The report definition.

fonts FontEngine

The fonts to measure with.

options ReportPreviewOptions

How to make the data up, or null for the defaults.

cancellationToken CancellationToken

Cancels the run.

Returns

ReportPageModel

The paginated preview.

Exceptions

ArgumentNullException

definition or fonts is null.