13.07.2015 Views

Reports & Queries - Source : www.pcsoft-windev-webdev.com

Reports & Queries - Source : www.pcsoft-windev-webdev.com

Reports & Queries - Source : www.pcsoft-windev-webdev.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

7. USING TABLES IN A REPORT7.1 OverviewIn a report, a table is made of controls called "Table cells".In most cases, a report contains a single table. To display several tables in the same report, you must useinternal reports (see page 78) or nested reports (see page 107).A table contains three sections:•the header row, displaying the caption of the table columns. This row is optional. If it is displayed, thisrow must be:• the first row of the table,• displayed in each new table.In most cases, this row is displayed in a Page header block or in a Break header block.•the data rows, displaying the information <strong>com</strong>ing from the data source. For each record found in thedata source, a new row is displayed when the report is run. The data of a given record is displayed on asingle row. In most cases, the data row is associated with the Body block.A single data row is displayed in the report editor. At run time, this data row is repeated as many timesas necessary.•the total row, used to calculate the totals on the table columns.In most cases, these rows are displayed in the Break footer block or in the Page footer block.Note: The different total cells are not necessarily displayed on the same row.For example:Benefits of using tablesIn edit mode and at run time, tables are a simple way for aligning the report controls. Furthermore, the controlsare automatically resized.If a table cell is expanded in the editor, the other table cells are automatically shifted.At run time, if a value cannot be entirely displayed in a cell of an auto-sizable table, all the cells found on therow will take the same height in order for the value to be entirely displayed.The report editor proposes two types of tables:•the simple tables.• the crosstab tables (double-entry tables).92Part 1: Report editor

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!