Skip to main content
A newer version of this page is available. .

Create an ASP.NET MVC Application with a Report Designer

  • 3 minutes to read

This tutorial describes how to use the DevExpress Template Gallery to generate a basic ASP.NET MVC application that contains an End-User Report Designer.

  1. Select FILE | New | Project in the main menu or press CTRL+SHIFT+N to create a new project.

    create-new-application-windows-forms

  2. In the invoked New Project dialog, expand the Installed category, choose a programming language (Visual C# or Visual Basic), and select the DevExpress v20.2 Template Gallery.

    asp-net-mvc-reports-create-devexpress-template-gallery

    Specify the application name and click OK.

  3. In the invoked DevExpress Template Gallery, select Reporting Web Application from the ASP.NET MVC category and click Run Wizard.

  4. Enable the Add Designer Page checkbox on the Reporting Control Settings wizard page to add the Report Designer to the web application (the Designer view file).

    Tip

    You can add a Web Document Viewer and a Report Designer to the application.

    Use the following Report Designer settings:

    Add Report Storage
    Specifies whether to create a sample server-side report storage. This storage allows you to open report layout files (REPX) from the Reports folder and instances of report types predefined in the assembly. In Visual Studio, you can customize any reports included in the assembly. If you modified a report in the Web Report Designer, it is saved to the corresponding REPX file in the Reports folder.

    Note

    The template generates a sample storage (a ReportStorageWebExtension descendant) for demonstration purposes only. Create your own implementation for use in production.

    Report Storage Name
    Specifies the report storage class name.
    Session State
    Specifies the type of session support to handle requests. Choose Required to enable the Report Designer to access values stored in HttpContext.Session.
    Data Binding Mode
    Specifies the data fetch mode for report controls. You can switch between legacy binding mode and expression bindings.
    Log Errors and Events
    Specifies whether to log server-side errors and events related to the Report Designer functionality to a particular file.
    Add Sample Database
    Specifies whether to create a sample connection string and register it in the Report Designer to create SQL Data Sources in the Report Wizard and Data Source Wizard. The connection string is also used to register a predefined data source.
    Add Sample JSON Data Connection Storage
    Specifies whether to create a storage and register it to create JSON Data Sources in the Report Wizard and Data Source Wizard. For the storage to work correctly, set the Session State setting to Required and ensure that the Newtosoft.Json package is installed.
    Add Sample Data Object
    Specifies whether to add a sample data object to an application and register this data object to create Object Data Sources in the Report Wizard and Data Source Wizard.
    Enable Rich Text Editor
    Specifies whether to add an in-line Rich Text Editor for the RichText control.

    Click Create Project to apply these settings to the project.

See Also