Skip to main content

Use ASP.NET Core Reporting in non-Windows Environments

  • 2 minutes to read

This topic describes how to enable the DevExpress.Drawing rendering engine in your ASP.NET Core application.

The DevExpress Drawing Library allows you to use the new Skia-based drawing engine. This library ships with the DevExpress primitives, which serve as counterparts for the System.Drawing primitives (Font, Pen, Brush, and so on). If you use the the System.Drawing.Common package v7 and later, the Skia-based engine is enabled automatically.

Refer to the following article for information on how to use the DevExpress Drawing library on Linux or macOS: Use Reporting on Linux and macOS..

Configuration

To enable the SkiaSharp-based engine, add the following packages to your application:

If the engine is not enabled automatically and the NotSupportedException is thrown, call the DevExpress.Drawing.Internal.DXDrawingEngine.ForceSkia() method to force the Skia-based rendering. Please note that this API is marked as internal and we may change it in the future. Please research why the SkiaSharp-based engine was not enabled automatically in your environment (you can contact the DevExpress Support team, specify your OS version, installed software dependencies, if you already added required packages to your non-Windows app).

Refer to the following article for more information on library troubleshooting: Drawing Library Troubleshooting.

Configure the Environment

The following commands configure the environment in the Dockerfile:

View Example: Reporting for ASP.NET Core - How to Use the SkiaSharp-Based DevExpress Drawing Engine

RUN apt-get update
RUN apt-get install -y libc6 libicu-dev libfontconfig1