Skip to main content

Create a Report in Visual Studio

  • 3 minutes to read

Install the Report Designer

Use the DevExpress Unified Component Installer to install DevExpress components. These components include the Report Designer.

Download: Free 30-Day Trial - Unified Component Installer

Add a New Report

  1. Press CTRL+SHIFT+A or click Project | Add New Item in the Visual Studio menu.

    Add a new item

  2. Select the DevExpress Report item, specify a report name, and click Add.

    Select the DevExpress Report item

  3. Select the report type in the invoked Report Wizard and click Finish. Select Blank if you want to create a report from scratch.

    Select Blank in the Report Wizard

    Note

    In .NET/.NET Core projects, a template for inherited reports is not supported in the Report Wizard. In such projects, you can inherit from a report only in code.

A Report Designer appears. The designer surface is broken down into bands that help you build the report flow. A band can appear at the beginning or end of the report, on every printed page, once for each data record, and so on.

Report Designer surface

See the following topic for more details on report bands: Introduction to Banded Reports.

You can drop report controls from the Toolbox onto bands to design the report layout.

Drop a control from a Toolbox onto a report band

Save Report

Reports are stored in your project by default (for example, as .cs files using CodeDOM serialization) and are managed like any project files in Visual Studio.

You can also save a report layout to a .repx file. This file stores the report definition in XML format and allows you to persist and reuse layouts outside the current project. Use this approach to distribute report layouts independently of the application, store them externally (for example, in a database or file storage), or load reports dynamically at runtime (such as in web applications).

Click the report’s smart tag and select Save to store report definition:

save-report-definition-visual-studio-design-time

For more information on storing and reusing report layouts, refer to the following topics:

What’s Next

You need to complete a number of tasks to setup your report: bind the report to data, apply a filter condition, customize appearance settings, and more. Refer to the following topics for details:

For more information on the Report Designer, its functionality, and limitations, see the following topic: Visual Studio Report Designer.

Get Help on DevExpress Reporting API

You can open online documentation for a report control or its property from Visual Studio. Select a control in the Report Designer or click a property in the Properties window and press F1.

reporting-get-help-from-report-designer

Refer to the following topic for more information: Get Help on DevExpress Reporting API.

See Also