Skip to main content
A newer version of this page is available. .
All docs
V21.2

IExportProcessor Interface

Defines a service that allows you to manage an exported document during export.

Namespace: DevExpress.Blazor.Reporting.Services

Assembly: DevExpress.Blazor.Reporting.v21.2.Viewer.dll

NuGet Package: DevExpress.Blazor.Reporting.Viewer

Declaration

public interface IExportProcessor

Remarks

The Report Viewer calls the IExportProcessor service when the document export command is executed.

The IExportProcessor methods are called in the following order:

  1. The GetStreamAsync method allows you to create a Stream to which the exported document data is sent.
  2. The FinalizeStreamAsync method is used to close the previously created stream and release resources.
  3. The GetExportInfoAsync method prepares data for the POST request that returns the exported document to the client.

To use a service in your application, you should register the service at application startup:

public class Startup
// ...
    public void ConfigureServices(IServiceCollection services)
    // ...
        services.AddScoped<IExportProcessor, CustomExportProcessor>();
        // ...
    }
    // ...
}

View Example: Report Viewer for Blazor - Custom Export

See Also