Skip to main content

DevExpress v25.1 Update — Your Feedback Matters

Our What's New in v25.1 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

Use DevExpress Visual Studio Templates to Create an ASP.NET MVC Reporting App with a Document Viewer

  • 2 minutes to read

Use the DevExpress Template Gallery to generate a basic ASP.NET MVC application that contains a Document Viewer.

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

    Create New Web Application

  2. Select the DevExpress v25.1 Web App Template Gallery, and click Next:

    Select Web App Template Gallery

  3. Specify a project name and location, and click Create:

    Web App Template Gallery Configure Project

  4. Select Reporting Web Application from the ASP.NET MVC category in the invoked DevExpress Template Gallery and click Run Wizard.

    DevExpress Template Gallery -Create Reporting Erb Application

  5. Set Add Viewer Page to True to add the Document Viewer (the Viewer.cshtml view) to the web application.

    Tip

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

    Reporting Web App - Add Document Viewer

    Use the following Document Viewer settings:

    • Add Report Storage - Specifies whether to create a sample server-side report storage. This storage allows users to open report layout files (REPX) from the Reports folder and instances of report types predefined in the assembly.
    • 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 Document Viewer to access values stored in HttpContext.Session.

Click Create Project to apply these settings to the project.

See Also