Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ReportWizardTemplate Class

Defines a template that the Report Wizard uses to create a new report.

Namespace: DevExpress.XtraReports.Web.ReportDesigner.DataContracts

Assembly: DevExpress.XtraReports.v24.2.Web.dll

NuGet Package: DevExpress.Web.Reporting.Common

#Declaration

[DataContract]
public class ReportWizardTemplate

#Remarks

The following code removes the Cross-Tab report from the wizard and adds two report templates with different thumbnails to the ReportWizardTemplateCollection in the CustomizeReportTypeList method:

public override void CustomizeReportTypeList(ReportWizardTemplateCollection predefinedTypes) {
    predefinedTypes.Remove(predefinedTypes.Where(x => x.ID == nameof(ReportType.CrossTab)).First());
    predefinedTypes.Add(new DevExpress.XtraReports.Web.ReportDesigner.DataContracts.ReportWizardTemplate() {
        CanInstantlyFinish = true,
        ID = nameof(CustomReportType.InstantReport),
        Text = "Instant Report",
        ImageTemplateName = "instant-report"
    });
    predefinedTypes.Add(new DevExpress.XtraReports.Web.ReportDesigner.DataContracts.ReportWizardTemplate() {
        CanInstantlyFinish = true,
        ID = nameof(CustomReportType.InstantReport),
        Text = "Instant Report",
        ImageClassName = "instant-report-image"
    });
    predefinedTypes.Add(new DevExpress.XtraReports.Web.ReportDesigner.DataContracts.ReportWizardTemplate() {
        ID = nameof(CustomReportType.CustomLabelReport),
        Text = "Custom Label Report",
        ImageTemplateName = "dxrd-svg-wizard-LabelReport"
    });
}

The result is shown in the following image:

CustomizeReportTypeList Sample Result

View Example: Reporting for Web (ASP.NET MVC, ASP.NET Core and Angular) - How to Use the Report Wizard Customization API and Hide Data Source Actions in Report Designer

#Inheritance

Object
ReportWizardTemplate
See Also