<< Click to Display Table of Contents >>

 

This tutorial describes how to create a data-bound report displaying information in a tabular format. Table reports should not be confused with hierarchical master-detail reports, nor with cross-tab reports.

 

1.Add the Page Header band to the report to print the column headers at the top of every document page. To do this, right-click the report's surface, and select Insert Band | PageHeader in the context menu.

eurd-win-table-report-insert-page-header

2.Switch to the Field List and select the required fields by clicking them while holding the CTRL or SHIFT key. Then, drop them onto the Page Header band with the right mouse button to quickly create column headers.

eurd-win-table-report-add-static-captions

This creates a Table in which each cell shows a field name.

3.To provide dynamic content to the report, switch to the Field List again and select the same fields. Click the selected fields and drag-and-drop them onto the Detail band.

eurd-win-table-report-add-dynamic-content

This creates a table with the same number of cells as the number of fields selected with each cell bound to the appropriate data field.

4.Select a table by clicking its handle, which appears when you hover the table with the mouse cursor. To select both tables simultaneously, click their handles while holding the CTRL key.

eurd-win-table-report-select-both-tables

5.Use the Toolbar's Font, Alignment and Borders sections to customize the tables' appearance.

eurd-win-table-report-appearance-via-toolbar

6.Define a currency format for the UnitPrice cell. Click the cell's smart tag, and then, click the Format String property's ellipsis button. Select the appropriate format in the invoked Format String Editor editor and click OK.

eurd-win-table-report-format-string

7.To further improve the table readability, you can apply different visual styles to its odd and even rows. See Report Visual Styles to learn more.

eurd-win-table-report-odd-even-styles

See the Use Tables section to learn how to add or remove the table's rows and cells, as well as convert the table's cells to separate label controls.

Switch to Print Preview to see the resulting report.

eurd-win-table-report-result