Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to customize a Report Wizard for WPF

$
0
0

This example illustrates the legacy API that was used to customize the older version of the Report Designer for WPF.

This control was discontinued, and starting with version 15.2, we recommend you use the newer Report Designer version instead.

 

To provide a custom report wizard to the older Report Designer version, do the following.

- Create a descendant class for each page to be included in the wizard. For each custom page class, override the ReportWizardPage.GetNextPageType method to define the order in which the pages will appear in the wizard.

- Create a descendant class for ReportWizardPageFactory<ReportModel> and override its ReportWizardPageFactory.RegisterDependencies method to register the custom wizard pages.

- Create a descendant class for ReportWizardLauncherService<ReportModel> and override its ReportWizardLauncherService.CreatePageFactory method so that it returns a new instance of the previously defined custom factory.

To register a custom wizard launcher service for the Report Designer, create a new instance of the custom wizard launcher service and pass it to the ReportDesigner.Model.DesignServices.RegisterInstance<IReportWizardLauncherService> method.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>