IReportDesignerModelBuilder.WizardSettings(Action<WizardSettings>) Method
In This Article
Allows you to specify certain settings for the Report Wizard invoked by Web Report Designer.
Namespace: DevExpress.XtraReports.Web.ReportDesigner.Services
Assembly: DevExpress.XtraReports.v24.2.Web.dll
NuGet Package: DevExpress.Web.Reporting.Common
#Declaration
IReportDesignerModelBuilder WizardSettings(
Action<WizardSettings> configure
)
#Parameters
Name | Type | Description |
---|---|---|
configure | Action<Wizard |
A Action that modifies the initial Wizard |
#Returns
Type | Description |
---|---|
IReport |
A IReport |
#Remarks
The following code example hides the Data Federation item in the Select Data Source type wizard page:
public IActionResult ReportDesigner(
[FromServices] IReportDesignerModelBuilder reportDesignerModelBuilder,
[FromQuery] string reportName) {
reportName = string.IsNullOrEmpty(reportName) ? "TestReport" : reportName;
var designerModel = reportDesignerModelBuilder
.Report(reportName)
.WizardSettings(s => {
s.EnableFederationDataSource = false;
})
.BuildModel();
return View(designerModel);
}
See Also