This example demonstrates how to customize a Report Wizard for WPF by removing its Grouping and Summaries pages.
To provide a custom report wizard, 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.