Skip to main content

Create a Multi-Column Report in the Visual Studio Report Designer

  • 3 minutes to read

This document describes how to arrange report data in multiple columns, which can be used to create mailing labels, business cards or multi-column directories.

Introduction

The following images illustrate different multi-column report layouts.

As opposed to side-by-side reports that are mainly used to display content from different data sources, multi-column reports enable you to arrange content from a single data source.

To quickly create labels of standard sizes, you can also use the Label Wizard.

For a corresponding online demo, see Multi-Column Report.

Settings

To access the multi-column settings of a report’s Detail band, use its smart tag or the Properties window.

multi-column-settings-designer

The DetailBand.MultiColumn property provides access to the following multi-column settings of the Detail band.

Setting

Description

MultiColumn.Mode

Enables you to select one of the following modes.

MultiColumn.ColumnSpacing

Specifies the distance between adjacent columns. This value is measured in report units.

MultiColumn.Layout

Specifies the preferred direction for arranging report data within columns.

  • ColumnLayout.AcrossThenDown

    The report data is arranged horizontally and is wrapped to the next row on reaching the right page margin.

    multi-column-across-then-down-ungrouped

    When the report data is grouped, the multi-column layout is applied to each group individually.

    multi-column-across-then-down-grouped

  • ColumnLayout.DownThenAcross

    The report data is arranged vertically and is wrapped to the next column on reaching the bottom page margin.

    multi-column-down-then-across-ungrouped

    When the report data is grouped, group bands serve as column headers or footers. Set the Group Footer band’s PageBreak property to AfterBand to make each group start on a new column.

    multi-column-down-then-across-grouped

How It Works

The following image illustrates a report designer with a multi-column layout applied to the report.

multi-column-layout-design-time

In multi-column mode, the report’s design surface is limited to the area defined by the column width. This is the only area intended to contain report controls.

The rest of this surface defines the space on a page remaining for printing columns and column spacing area.

In the above image, the report data in the Detail band is contained within a Panel that provides borders around the enclosed content.

panel-borders-property-grid

You can also specify a custom background color for the Panel. To learn how to change this color dynamically (based on the report’s underlying data), see Conditionally Change a Control’s Appearance.

When the report data is grouped (as in the above image), and the down-then-across multi-column layout is used, you can make each group start on a new column. To do this, set the Band.PageBreak property of the Group Footer to PageBreak.AfterBand or PageBreak.AfterBandExceptLastEntry. When there is no data to display in the Group Footer, set the band height to zero.

group-footer-page-break-after-band

Create a Multi-Column Report in the End-User Report Designer

Tutorials that explain how to create different reports in EUD Report Designers for WinForms and Web are included in the End-User Documentation online help section: