Giter Club home page Giter Club logo

devexpress-examples / reporting-web-cacheddocumentsource-custom-data Goto Github PK

View Code? Open in Web Editor NEW
1.0 56.0 0.0 1.43 MB

This example handles the XlSheetCreated document event to pass custom data to the exported worksheet. The example shows how to recover document event handlers that are lost when the document is cached.

License: Other

C# 74.48% HTML 25.39% JavaScript 0.13%
cache document reporting xtrareport cached-document-source reporting-for-asp-net-core

reporting-web-cacheddocumentsource-custom-data's Introduction

Reporting for ASP.NET Core - How to Manage Events of a Cached Document and Pass Custom Data to the Exported Document

This example creates and registers a descendant of our WebDocumentViewerOperationLogger class to attach the XlSheetCreated event handler to the document.

This example also illustrates the technique used to restore event handlers after a document is serialized in the cache and all event handlers are detached.

Run the application and select Export to XLSX:

Export to XLSX

The product category is used to rename worksheets in the exported XLSX file. The category is displayed in the report on the page from which the worksheet originated.

Exported XLS file with Renamed Worksheets

Files to Review

Documentation

reporting-web-cacheddocumentsource-custom-data's People

Contributors

andreylepikhov avatar briandx avatar kochkin avatar pollyndos avatar

Stargazers

 avatar

Watchers

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