Back to Devexpress

Remove Data Providers from the Report Wizard

xtrareports-115674-desktop-reporting-winforms-reporting-end-user-report-designer-for-winforms-api-and-customization-remove-data-providers-from-the-report-wizard.md

latest2.8 KB
Original Source

Remove Data Providers from the Report Wizard

  • Oct 06, 2023
  • 3 minutes to read

This example illustrates how to remove some of the data providers available on the Specify a Connection String wizard page.

The following image illustrates this wizard page with all the data providers removed except for Microsoft SQL Server.

Use one of the following approaches to customize the Data Source and Report wizard pages.

Customize the Wizard at Design Time

To customize the Data Source and Report wizard pages at design time in the Visual Studio, drop the StandardReportDesigner or RibbonReportDesigner control on a form and select the XRDesignMdiController component.

In the Properties window, expand the XRDesignMdiController.SqlWizardSettings property and select the required data providers in the SqlWizardSettings.AvailableDataProviders property editor.

Customize the Wizard in Code

To customize the Data Source and Report wizard pages in code, do the following.

  1. Add a custom service implementing the IWizardCustomizationService interface.

  2. Register the created service by calling the XRDesignMdiController.AddService method.

See Also

Wizard Customization Overview

Remove Data Source Types from the Report Wizard