Class ReportViewerBackend
- Namespace
- ReportWright.Blazor
- Assembly
- ReportWright.Blazor.dll
Where a viewer gets its definition, its rows, its fonts and its exports. The component runs the engine itself in every hosting mode; this is the only thing that differs between Blazor Server (in-process, LocalReportViewerBackend) and Blazor WebAssembly (over HTTP, HttpReportViewerBackend).
public abstract class ReportViewerBackend
- Inheritance
-
ReportViewerBackend
- Derived
- Inherited Members
Constructors
- ReportViewerBackend()
Initializes the base class.
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
- CreateBundledFonts()
The font engine a backend uses when the host gives none: the engine's bundled faces and nothing from the machine.
- 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.