Back to Devexpress

DashboardExportSettings.CompatibilityMode Property

dashboard-devexpress-dot-dashboardcommon-dot-dashboardexportsettings.md

latest4.5 KB
Original Source

DashboardExportSettings.CompatibilityMode Property

Gets or sets the compatibility mode used to export a dashboard/dashboard items.

Namespace : DevExpress.DashboardCommon

Assembly : DevExpress.Dashboard.v25.2.Core.dll

NuGet Package : DevExpress.Dashboard.Core

Declaration

csharp
public static DashboardExportCompatibilityMode CompatibilityMode { get; set; }
vb
Public Shared Property CompatibilityMode As DashboardExportCompatibilityMode

Property Value

TypeDescription
DashboardExportCompatibilityMode

A DashboardExportCompatibilityMode enumeration value that specifies the compatibility mode used to export a dashboard/dashboard items.

|

Available values:

NameDescription
Full

Identifies the full export mode that uses GDI+ API to export a dashboard/dashboard item.

| | Restricted |

Identifies the restricted export mode that disables use of the GDI+ API to export a dashboard/dashboard item. For instance, this mode is used to fix issues related to exporting a dashboard/dashboard item displayed in the web application deployed in the cloud.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the CompatibilityMode property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

asp-net-core-dashboard-antiforgery/CS/AspNetCoreDashboardPreventCrossSiteRequestForgery/Startup.cs#L19

csharp
DashboardExportSettings.CompatibilityMode = DashboardExportCompatibilityMode.Restricted;
}

asp-net-core-dashboard-custom-item-tutorials/CS/AspNetCoreCustomItemTutorials/Startup.cs#L20

csharp
FileProvider = hostingEnvironment.ContentRootFileProvider;
    DashboardExportSettings.CompatibilityMode = DashboardExportCompatibilityMode.Restricted;
}

asp-net-core-dashboard-restricted-controller/CS/AspNetCoreCustomDashboardController/Startup.cs#L20

csharp
FileProvider = hostingEnvironment.ContentRootFileProvider;
    DashboardExportSettings.CompatibilityMode = DashboardExportCompatibilityMode.Restricted;
}

asp-net-core-dashboard-custom-item-gallery/CS/AspNetCoreCustomItem/Startup.cs#L24

csharp
FileProvider = hostingEnvironment.ContentRootFileProvider;
    DashboardExportSettings.CompatibilityMode = DashboardExportCompatibilityMode.Restricted;
}

asp-net-core-dashboard-export-all-items/CS/AspNetCoreDashboard_ExportAllItems/Startup.cs#L21

csharp
FileProvider = hostingEnvironment.ContentRootFileProvider;
    DashboardExportSettings.CompatibilityMode = DashboardExportCompatibilityMode.Restricted;
}

See Also

DashboardExportSettings Class

DashboardExportSettings Members

DevExpress.DashboardCommon Namespace