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
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.
See Also