Skip to main content
A newer version of this page is available. .

AzureCompatibility.Enable Property

Specifies whether or not the PDF export mode is Azure-compatible.

Namespace: DevExpress.Utils

Assembly: DevExpress.Data.v21.1.dll

NuGet Package: DevExpress.Data

Declaration

public static bool Enable { get; set; }

Property Value

Type Description
Boolean

true if the PDF export is Azure-compatible; otherwise false.

Remarks

The AzureCompatibility.Enable is a static property. You should specify it at application startup as follows:

DevExpress.Utils.AzureCompatibility.Enable = true;

To use the AzureCompatibility.Enable property in your code, add a reference to the DevExpress.Data.v21.1.dll assembly to your project.

When you set the AzureCompatibility.Enable property to True, specific GDI/GDI+ calls, which are not supported in Azure, are disabled. Other methods are used to draw content.

Some of the DevExpress graphical report controls render their displayed content to the Windows Metafile format, which is not supported by Azure. The following problems can occur:

  • Printing, Reporting, RichEditDocumentServer, PDF libraries can produce unexpected output content (such as red crosses X, distorted fonts, etc.) when being used on Azure Web Site.
  • The “Insufficient memory to continue the execution of the program” error can occur when exporting visual controls such as Data Grid (Grid View and Card View), Tree List.

For this reason, setting the AzureCompatibility.Enable option to true causes the corresponding controls to be always rendered as bitmaps.

See Also