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:
Register ReportWizardSettings with customized report types using AddService:
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: