Skip to main content
All docs
V25.1
  • Remove Report Types from the Report Wizard

    The Report Wizard customization enables you to remove specific report types, preventing users from selecting them when creating a new report. The following examples hide the “CrossTab” report type from the Report Wizard in two different ways:

    1. Register ReportWizardSettings with customized report types using AddService:

      using DevExpress.XtraReports.Wizards;
      // ...
      ReportWizardSettings settings = new ReportWizardSettings();
      settings.ReportTypes.Remove(ReportType.CrossTab);
      reportDesigner1.AddService(typeof(ReportWizardSettings), settings);
      
    2. Implement IWizardCustomizationService and write the logic to customize report types in the IWizardCustomizationService.CustomizeReportWizard method body:

      using DevExpress.XtraReports.Wizards;
      // ...    
      reportDesigner1.AddService(typeof(IWizardCustomizationService), new WizardCustomization());
      class WizardCustomization : IWizardCustomizationService {
          public void CustomizeReportWizard(IWizardCustomization<XtraReportModel> tool) {
              ReportWizardSettings settings = tool.Resolve<ReportWizardSettings>();
              settings.ReportTypes.Remove(ReportType.CrossTab);
          }
      // ...    
      

    The following image illustrates results:

    win-report-wizard-remove-report-types-example