Coder Social home page Coder Social logo

devexpress-examples / reporting_wpf-report-designer-how-to-register-a-custom-page-in-the-report-wizard-t600080 Goto Github PK

View Code? Open in Web Editor NEW
0.0 55.0 0.0 81 KB

Add a custom page in Report Wizard for End-User Report Designer.

License: Other

C# 83.70% Visual Basic .NET 16.30%
wpf xpf customization reporting wizard reporting-for-wpf

reporting_wpf-report-designer-how-to-register-a-custom-page-in-the-report-wizard-t600080's Introduction

Reporting for WPF - How to Register a Custom Page in the Report Wizard for the End-User Report Designer

This example demonstrates how to extend the Report Wizard in the End-User Report Designer with a custom page that allows you to edit the report page settings. This page is displayed after selecting the report type (for empty and data-bound reports).

Implementation Details

To accomplish this task, perform the following steps:

  1. Create the Presenter class as the DevExpress.Data.WizardFramework.WizardPageBase<TView, TModel> class descendant. Implement the logic to pass data between a Model and View, specify the next wizard page type, and define which page buttons should be available.
  2. Declare an interface that identifies the wizard page View.
  3. Create the ViewModel class as the DevExpress.Xpf.DataAccess.DataSourceWizard.WizardPageBase class descendant that implements the interface declared above. This ViewModel class processes data to display it in the User Interface.
  4. Write an XAML template with the ViewModel type referenced by a Key to define the page's visual appearance and layout. The specified Key is used to automatically locate the corresponding template. 5. Create an XtraReportModel class descendant. Add custom fields to store the report page settings and override the Equals method to take into account the added fields.
  5. Override the existing ChooseReportTypePage to set the next page to your custom one.
  6. Implement the IWizardCustomizationService interface, which provides four methods for wizard customization. In this implementation, register the previously created Presenters, ViewModel, and Model, and write the logic to build a report.

Files to Review

More Examples

reporting_wpf-report-designer-how-to-register-a-custom-page-in-the-report-wizard-t600080's People

Contributors

alexilia avatar andreylepikhov avatar devexpressexamplebot avatar geumjalee avatar vasyaste 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

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.