You can define multiple columns for the report or label page layout. Multiple columns divide a page layout into vertical sections. The Report Designer and Label Designer display one column, allowing you to place report controls only in a portion of the page layout. At runtime, the Report Engine repeats the column layout two or more times to fill the page.
|If you increase the number of columns in your page layout after arranging report controls in the layout, you might need to move or resize the controls to fit within the new boundaries of column.|
Columns have an associated pair of header and footer bands, which are nested inside the report's page header and page footer bands. Column header bands appear above any group header bands, and column footer bands appear below any group footer bands, in the Report Designer layout. The behavior of these bands and the options you can set for them is similar to those available for group header and footer bands. For more information, see How to: Add Bands to Reports.
However, the addition of multiple columns to a report layout can have an impact on the behavior of column, group, and detail header and footer bands in the report. This impact depends on how you set Column print order, as described in the procedures below.
To define columns for a report or label page layout
Open the report or label in the appropriate designer.
On the Report menu, click Properties.
The Report Properties dialog box opens.
Note: If the _REPORTBUILDER system variable is not set to the default Report Builder, the Report Page Setup dialog box opens instead. If _REPORTBUILDER is set to a third-party builder, a different dialog box might display. For more information, see _REPORTBUILDER System Variable and Report Page Setup Dialog Box.
In the Report Properties dialog box, click the Page Setup tab.
In the Number box, type or select the number of columns you want to appear across the page.
In the Width box, type or select a value for the column width.
In the Spacing box, type a value for the amount of space you want between each column.
Note: The Spacing box is available only when specifying more than one column in the Number box. Use the Column print order option group to determine the print order appropriate to the data in this report or label. By default, the Report Designer selects the Top to bottom option button. In this print order, Report Engine prints records consecutively in a single column until reaching the end of the available height for the detail band on the current page. If you select the Left to right option button, the Report Engine prints records across the multiple columns, before continuing to print an additional record in the first column. This print order is the default for the Label Designer, and is often referred to as label style. Note: In Visual FoxPro 9.0, setting label-style print order has some additional impact on reports. When you use this option to make columns flow from left to right, group and detail header and footer bands extend across the page, so they can provide true header information for the entire row. The detail band starts one row down from any header bands you design in the layout. In earlier versions, Column print order did not change the behavior of group header and footer bands, so the first detail item printed adjacent to the innermost group header on the same row.
For more information, see Page Layout Tab, Report Properties Dialog Box (Report Builder).