Progress
Report Builder
User’s Guide
Alignment Defaults and Options
A field’s default alignment is assigned when the field is created. When you create fields in Report Builder, Report Builder automatically assigns a default alignment based on the type of field you create. The field type also dictates the available alignment options. Table 4–4 lists each data type, its default alignment, and the alignment options.
NOTE: Choose PropertiesBand Line Justify to specify the position of the field within the margins of the report.
There are four possible field alignment options:
Left-aligned Data
Report Builder starts printing a left-aligned field at the position occupied by the left edge of the field on the layout. For example, if the first letter of a left-aligned character field begins at two inches on the layout, Report Builder starts printing two inches from the left margin. The position of the last character in the field data varies depending on the font applied to the field, the length of the data, and the width of the field. Report Builder might truncate character and memo fields if the field is not wide enough.
Centered Data
Report Builder determines the position of centered data by the position of the middle character of the field value. The position of the first character in the field varies depending on the font applied to the field and the length of the data.
Right-aligned Data
Report Builder starts printing a right-aligned field so that it ends at the position occupied by the right edge of the field on the report layout. For example, if the last letter of a text field is at two inches on the layout, Report Builder adjusts the starting point of the text, depending on the field’s font, so that the field ends two inches from the left margin. The position of the first character in the field varies depending on the font applied to the field and the length of the data.
Word-wrapped Data
Report Builder continues to print the data for a word-wrapped field on subsequent lines after the data fills the field width on the first line.
When you choose the Word Wrap option, you must also specify whether the word-wrapped field will be left, right, or fully justified. Word-wrapped, left-aligned is the default format for memo fields.
The following rules control word-wrap format:
- Report Builder prints any field that is on the same band line as the word-wrapped field in the line in where it is placed on the report layout.
- Word-wrapped fields push down the fields in the column directly beneath them. However, Report Builder prints any other fields on the band line where they appear in the layout. This means that fields that the fields on the band line directly below a band line containing a word wrap field will not appear in the row on a report. To avoid having a word wrap field change the placement of the fields fields on the band line below it, create another band line of the same type directly below the band line containing the word wrap field. Then, create a text field with a series of blanks that extends the width of the fields on the band line below it.
- For word-wrapped fields in page header and page footer bands, Report Builder truncates the data to fit within the band area. For example, if there is a word-wrapped field on the second line of a three-line page header, the data wraps only for the remaining line. Because the page header band is fixed length, Report Builder does not print the data for fields placed on line 3.
- For word-wrapped fields in any other band, Report Builder prints all the data, inserting as many additional lines as necessary. The data continues to wrap from one line to the next within its field width until it is printed. Any such additional lines do not consume subsequent blank lines inserted in the band.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |