Defining a Report Layout (Visual Studio Report Designer)

A report layout consists of three main areas: a page header, page footer, and the body. The body of the report contains the report data. You can add data regions, text boxes, images, rectangles, subreports and visual enhancements to the report layout. Data regions display repeated rows of data from a data source. The page header and footer repeat the same content at the top and bottom of each page of the report. You can place report items such as images, text boxes, and lines in headers and footers.

To design a report, you open a client report definition (.rdlc) file in graphical design mode and drag report items from the Toolbox to create the report. The design view of the report presents the underlying .rdlc XML file definition of the report. You should avoid modifying the XML file directly if you want to keep the design view and XML file synchronized.

Visually, the design surface is a rectangular area with an overlay of grid dots that you can use to align report items on the layout. Item alignment is important. If items are not aligned, the report rendering process might create extra pages or unexpected white space to accommodate all of the items.

When you run a report, report processing combines the report layout information in the .rdlc file with data from the data source, and renders the report in either HTML or Graphical Device Interface (GDI) format. The output format can change the way data is processed and the report is rendered.

The placement of report items in a report is completely freeform. You are not limited to "bands" of data in a report. You can place data regions with different sets of data side-by-side. Certain report items can also contain other report items. For data regions, this means that you can nest groups of data within other groups. For more information about data regions, see Adding Data Regions to a Report (Visual Studio Report Designer).

To get started, use the walkthroughs to learn the basics of report design. For more information, see Samples and Walkthroughs.

In This Section

See Also

Concepts

Adding and Configuring the ReportViewer Controls
Creating Client Report Definition (.rdlc) Files
Adding and Configuring the ReportViewer Controls
Converting RDL and RDLC Files
Optimizing Report Layout for HTML Output (Visual Studio Report Designer)