Skip to content

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

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/reporting-wpf-wizard-custom-page

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)