The following example customizes the Report Wizard and Data Source Wizard pages. Both wizards display "Select a Data Connection Type" (ChooseDataProviderPage
) as the start page. The list of available SQL data source providers is limited to MSSQLServer, Oracle, Amazon Redshift, MySQL, Postgres, and SQLite.
The MyWizardCustomizationService
class implements the IWizardCustomizationService interface and allows you to customize the Data Source and Report Wizards. The CustomizeDataSourceWizard
and CustomizeReportWizard
methods contain the main logic for wizard customization:
StartPage
- sets the wizard start page to theChooseDataProviderPage
.ReportType
- specifies the report type in the report model.DataSourceType
- specifies the data source type in the report model.
The CustomizeProviders
method limits the available data source types and providers to a predefined list.
The ReportDesigner.ServicesRegistry property registers the MyWizardCustomizationService
type in XAML.
- MainWindow.xaml (VB: MainWindow.xaml)
- MyWizardCustomizationService.cs (VB: MyWizardCustomizationService.vb)
(you will be redirected to DevExpress.com to submit your response)