Code Monkey home page Code Monkey logo

reporting-use-devexpress-drawing-skia-engine's Introduction

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

This example demonstrates how to use the DevExpress.Drawing package based on the SkiaSharp library instead of the System.Drawing library in an ASP.NET Core application to preview, print, or export DevExpress XtraReports.

The commands required to configure the host operating system environment for the DevExpress Drawing Engine are included in the docker file.

How to build and run this example

Visual Studio

You can run the app on the Windows platform, or the Windows Subsystem for Linux or Docker. Select a platform from the Debug drop-down menu in the toolbar, and start debugging the app.

CLI

Run the application from the dotnet CLI on Windows, Linux and MacOS with the dotnet run command. To run the Docker container from the command line, build the Docker image. You should pass the DevExpress NuGet source URL as a secret to restore NuGet packages. Review the BuildKit documentation for more information.

set DX_NUGET=https://nuget.devexpress.com/some-nuget-token/api
docker build -t reporting-app --secret id=dxnuget,env=DX_NUGET .
docker run -p 8080:80 reporting-app:latest
export DX_NUGET=https://nuget.devexpress.com/some-nuget-token/api
DOCKER_BUILDKIT=1 docker build -t reporting-app --secret id=dxnuget,env=DX_NUGET .
docker run -p 8080:80 reporting-app:latest

The application page is available at the following URL: http://localhost:8080/.

Files to look at

  • Startup.cs

    At startup, call the DevExpress.Drawing.Internal.DXDrawingEngine.ForceSkia method to use the DevExpress Drawing Skia engine in the application.

  • ReportingWebApp.csproj

    The DockerfileFile property in the project file specifies the name of the docker file to use in the project. Sample docker files for different operating systems are included in the project. You should edit the project file manually to replace the default Debian docker file with docker files for Alpine, Ubuntu or Amazon Linux. For more information on the build properties in a project file, review the following help topic: Container Tools build properties.

  • Dockerfile

    The Debian docker file.

  • Dockerfile.Alpine

    The Alpine docker file.

  • Dockerfile.Ubuntu

    The Ubuntu docker file.

  • Dockerfile.AmazonLinux

    The Amazon Linux docker file.

  • Dockerfile.OpenSuse

    The OpenSuse docker file.

More Examples

reporting-use-devexpress-drawing-skia-engine's People

Contributors

andreylepikhov avatar devexpressexamplebot avatar

Stargazers

Roman avatar SeppPenner avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.