Giter VIP home page Giter VIP logo

reporting-provide-custom-report-gallery-storage-in-report-designer's Introduction

WinForms and WPF Report Designers - How to Implement a Custom Report Gallery Storage

This example demonstrates how to store Report Gallery templates in a database and share them between multiple users.

Example Overview

Steps to implement a custom storage:

  1. Create a descendant of the abstract ReportGalleryExtension class.
  2. Set the ReportGalleryExtension.EnableSynchronization property to true to enable synchronization between a shared database storage and local Report Gallery instances. This also adds the Refresh button to Report Gallery toolbars. End users can click this button to update Gallery content explicitly.
  3. Implement the TryLoadGallery method to load the entire Report Gallery from the database storage.
  4. Implement the SaveGallery or SaveGalleryChanges method to save the entire Gallery or only the changes that have been made.

This example demonstrates how to implement the following storages:

  • XpoReportGalleryStorageSimple - saves and loads all the gallery items.

    In this storage, the SaveGallery is implemented to overwrite the entire Report Gallery. The TryLoadGallery method is called when the Gallery runs and whenever a user manages gallery items.

  • XpoReportGalleryStorageAdvanced - saves and loads the changed items only.

    In this storage, the SaveGalleryChanges method is implemented to save Report Gallery changes. The protected GetChanges method is overridden to compare changed items only. This method is called whenever a user manages gallery items. The TryLoadGallery method is called only when the Gallery runs.

Do the following to register the Report Gallery storage in your application:

Files to Review

Doumentation

reporting-provide-custom-report-gallery-storage-in-report-designer's People

Contributors

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