Git Product home page Git Product logo

reporting-use-the-devexpress-crossplatform-drawing-engine's Introduction

How to Use the DevExpress CrossPlatform Drawing Engine in an ASP.NET Core Application

This example demonstrates how to enable the DevExpress CrossPlatform Drawing Engine 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 CrossPlatform Drawing Engine are included in the docker file.

Files to look at

  • Startup.cs

    At startup call the DevExpress.Printing.CrossPlatform.CustomEngineHelper.RegisterCustomDrawingEngine method to register the DevExpress CrossPlatform Drawing 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. Edit the project file manually to change the default Debian docker file to docker files for Alpine or Ubuntu. 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.

How to build and run this example

Visual Studio

You can run the app on Windows platform, Windows Subsystem for Linux or Docker. Select a platform from the debug drop-down 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 contaier 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.

Windows

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

Linux

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/.

Documentation

reporting-use-the-devexpress-crossplatform-drawing-engine's People

Contributors

andreylepikhov avatar devexpressexamplebot 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.