Table of Contents

Class PreviewBackend

Namespace
ReportWright.Blazor.Designer
Assembly
ReportWright.Blazor.Designer.dll

The viewer backend the preview tab runs on: the in-memory definition as it stands, with data invented from the declared fields (ReportPreview) or the host's data through the designer backend's viewer. Export is offered only for a saved, unchanged report, because the host exports what its store holds.

public sealed class PreviewBackend : ReportViewerBackend
Inheritance
PreviewBackend
Inherited Members

Constructors

PreviewBackend(ReportViewerBackend, DesignerDocument, bool)

Initializes the backend.

Properties

Culture

Gets the user's culture, or null for the report's own language.

ExportFormats

Gets the export format names on offer.

Fonts

Gets the font engine the viewer measures with — the same faces on every side.

ImageResolver

Gets the image resolver for external images, or null to refuse them.

Now

Gets the clock a run reads for Globals!ExecutionTime.

Methods

CreateDataProviderAsync(string, ReportDefinition, IReadOnlyDictionary<string, ReportParameterValue>, CancellationToken)

Supplies the data for one run. In-process this is the live provider; over HTTP every dataset's rows are fetched here first, because the engine asks synchronously and a browser cannot answer that way.

CreateSubreportResolver(string)

Resolves subreports for a run, or null when the host offers none.

ExportAsync(string, ReportPageModel, IReadOnlyDictionary<string, ReportParameterValue>, string, CancellationToken)

Exports a run.

LoadDefinitionAsync(string, CancellationToken)

Loads a report definition.