Skip to main content
All docs
V24.1

DxReportViewer.ExportModel Property

Provides access to the document export settings.

Namespace: DevExpress.Blazor.Reporting

Assembly: DevExpress.Blazor.Reporting.v24.1.Viewer.dll

NuGet Package: DevExpress.Blazor.Reporting.Viewer

Declaration

public ExportModel ExportModel { get; set; }

Property Value

Type Description
ExportModel

The export settings.

Remarks

Use this property to modify the list of available export formats.

The following code excludes XLS and XLSX formats from the drop-down list of available export formats:

<DxReportViewer @ref="reportViewer"></DxReportViewer>

@code {
    DxReportViewer reportViewer;

    protected override void OnAfterRender(bool firstRender)
    {
        base.OnAfterRender(firstRender);
        reportViewer.ExportModel.AvailableFormats
          .RemoveAll(item => item.Name.Contains("Xls"));
    }
}

The resulting list is shown below.

Blazor Native Remove Export Formats

See Also