Skip to main content
All docs
V25.2
  • IReportDesignerModelBuilder.BuildModel() Method

    Builds a View Model for a Report Designer component.

    Namespace: DevExpress.XtraReports.Web.ReportDesigner.Services

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

    NuGet Package: DevExpress.Web.Reporting.Common

    Declaration

    ReportDesignerModel BuildModel()

    Returns

    Type Description
    ReportDesignerModel

    A View Model for a Report Designer component.

    Remarks

    The following code snippet is an example of a Report Designer controller that uses a service that implements the IReportDesignerModelBuilder interface:

    public class HomeController : Controller {
        public IActionResult Index([FromServices] IReportDesignerModelBuilder reportDesignerModelBuilder) {
            ReportDesignerModel model = reportDesignerModelBuilder
                .Report("TestReport")
                .BuildModel();
            return View(model);
        }
    } 
    

    View Example

    The following code snippets (auto-collected from DevExpress Examples) contain references to the BuildModel() method.

    Note

    The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

    See Also