Table of Contents

Method ExportAsync

Namespace
ReportWright.Blazor.Server
Assembly
ReportWright.Blazor.Server.dll

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

Exports a run.

public override Task<ExportedReport> ExportAsync(string path, ReportPageModel pages, IReadOnlyDictionary<string, ReportParameterValue> parameters, string format, CancellationToken cancellationToken)

Parameters

path string

The report's path.

pages ReportPageModel

The pages as the viewer shows them.

parameters IReadOnlyDictionary<string, ReportParameterValue>

The parameter values the run used.

format string

The format name.

cancellationToken CancellationToken

Cancels the export.

Returns

Task<ExportedReport>

The file.

Exceptions

UnauthorizedAccessException

The user may not export the report.